码农笔录博客源码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 rivejä
4.0 KiB

6 vuotta sitten
{{template "header" .}}
6 vuotta sitten
<meta name="keywords"
6 vuotta sitten
content="{{.User.NickName}}主页,码农随笔,个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,aiprose">
<meta name="description" content="【{{.User.NickName}}】个人主页 - 码农随笔,{{.User.DescInfo}}">
<title>【{{.User.NickName}}】个人主页 - 码农随笔</title>
6 vuotta sitten
</head>
<body>
<div class="root-container">
{{template "nav" .}}
<div style="height: 100%;margin: 50px 10% 0 10%;">
<div style="display: flex" class="uinfo">
6 vuotta sitten
<img src="{{.User.Headimg}}" alt="头像" class="img-circle" style="width: 120px;height: 120px">
6 vuotta sitten
<div style="flex: 1;margin-left: 20px;">
{{/*<h1>{{.User.NickName}}</h1>*/}}
6 vuotta sitten
<h1 style="margin-top: 20px;margin-bottom: 0">{{.User.NickName}}</h1>
6 vuotta sitten
<div style="height: 35px;line-height: 35px;font-size: 14px;">
{{.User.DescInfo}}
</div>
<div class="udesc">
<span>加入 {{.User.Ctime.Format "2006-01-02"}}</span>
<span>文章 {{.User.BlogCount}}</span>
<span>访问 {{.User.BlogBrowes}}</span>
<span>评论 {{.User.BlogComment}}</span>
<span>收藏 {{.User.BlogLike}}</span>
</div>
</div>
</div>
<hr class="fhr" color=#ffeeeeee SIZE=0.1 style="margin: 0">
<div style="color: #515a6e;height: 30px;line-height: 30px;">
<span>排序: </span>
6 vuotta sitten
<span style="margin-left: 15px"><a href="/u/{{.User.Id}}?num=1&flag=0"
style="color: #515a6e;text-decoration: none">发布时间</a></span>
<span style="margin-left: 8px"><a href="/u/{{.User.Id}}?num=1&flag=1"
style="color: #515a6e;text-decoration: none">访问量</a></span>
6 vuotta sitten
</div>
{{range .Page.List}}
<div class="blog-list">
6 vuotta sitten
<p style="margin: 0;font-size: 16px"><a href="/blog/{{.Id}}" target="_blank">{{.Title}}</a></p>
6 vuotta sitten
</div>
5 vuotta sitten
<hr style="height:1px;border:none;margin: 0"/>
6 vuotta sitten
{{end}}
</div>
6 vuotta sitten
<div style="text-align: center">
<nav>
<div class="pagination pagination-lg">
<ul>
{{if .Page.FirstPage}}
{{else}}
<li class="prev">
<a href="/u/{{.User.Id}}?num={{ .Page.PageNo | NAdd -1}}&flag={{.Flag}}">&laquo;</a>
</li>
{{end}}
<li class="active"><a href="javascript:void(0)">{{.Page.PageNo}}</a></li>
{{if .Page.LastPage}}
{{else}}
<li class="next">
<a href="/u/{{.User.Id}}?num={{ .Page.PageNo | NAdd +1}}&flag={{.Flag}}">&raquo;</a>
</li>
{{end}}
</ul>
</div>
</nav>
</div>
6 vuotta sitten
</div>
</body>
6 vuotta sitten
<script>
$(function () {
/*百度收录*/
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
/*360收录*/
var qihuo = document.createElement('script');
6 vuotta sitten
if (curProtocol === 'https') {
qihuo.src = 'https://jspassport.ssl.qhimg.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c';
}
else {
qihuo.src = 'http://js.passport.qihucdn.com/11.0.1.js?d33b14200fa89b7ecd3780341cd234c4';
}
qihuo.id = "sozz"
var s = document.getElementsByTagName("script")[1];
s.parentNode.insertBefore(qihuo, s);
6 vuotta sitten
})
</script>
6 vuotta sitten
</html>