码农笔录博客源码
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

80 lignes
2.7 KiB

il y a 6 ans
{{template "header" .}}
<meta name="keywords" content="云悦,个人随笔,博客,个人博客,个人笔记,技术博客,免费云笔记,云笔记,随笔,IT博客,谷歌地图,码农笔录,aiprose">
<title>云悦· IT技术博客</title>
il y a 6 ans
<link type="text/css" rel="styleSheet" href="/static/css/index.css"/>
</head>
<body>
{{template "nav" .}}
<div class="jumbotron" style="margin-top: 41px;padding-left: 50px;margin-bottom: 10px">
<h1>Hello, world!</h1>
<p>云悦 2.0(golang)版本正式上线</p>
<p>
<a class="btn btn-primary btn-lg" href="/us" role="button">Learn more</a>
<a class="btn btn-primary btn-lg" href="/blog/new" target="_blank" role="button">写文章</a>
</p>
il y a 6 ans
</div>
<div style="margin: 0 5%" class="blog-root">
<div style="display: flex">
<div style="flex: 1">
<h5>最新发布</h5>
{{range .TimeBlog}}
<p><a href="/blog/{{.Id}}" target="_blank">{{.Title}}</a></p>
il y a 6 ans
{{end}}
</div>
<div style="flex: 1">
<h5>流量王者</h5>
{{range .BrowsBlog}}
<p><a href="/blog/{{.Id}}" target="_blank">{{.Title}}</a></p>
il y a 6 ans
{{end}}
</div>
</div>
<div style="display: flex">
<div style="flex: 1">
<h5>收藏排行</h5>
{{range .LikeBlog}}
<p><a href="/blog/{{.Id}}" target="_blank">{{.Title}}</a></p>
il y a 6 ans
{{end}}
</div>
<div style="flex: 1">
<h5>人气最旺</h5>
{{range .CommBlog}}
<p><a href="/blog/{{.Id}}" target="_blank">{{.Title}}</a></p>
il y a 6 ans
{{end}}
</div>
</div>
</div>
<div>
</div>
<div style="margin: 30px 5% 0 5%">
il y a 6 ans
{{template "footer"}}
</div>
</body>
il y a 6 ans
<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');
il y a 6 ans
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);
il y a 6 ans
})
</script>
il y a 6 ans
</html>