码农笔录博客源码
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

67 linhas
3.4 KiB

há 6 anos
{{template "header"}}
há 6 anos
<title>首页 - 个人随笔</title>
<link type="text/css" rel="styleSheet" href="/static/css/index.css"/>
há 6 anos
</head>
<body>
<div class="root-container">
há 6 anos
{{template "nav" .}}
<div class="home-container">
<div class="home-hearder">
<div style="flex: 1">
<span class="sui-dropdown dropdown-bordered select dropdown-large">
<span class="dropdown-inner">
<a id="select" role="button" href="javascript:void(0);" data-toggle="dropdown"
class="dropdown-toggle">
<input value="hz" name="city" type="hidden"><i class="caret"></i><span>选择分类</span></a>
<ul role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
<li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);"
value="bj">北京</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value="sb">圣彼得堡</a></li>
<li role="presentation" class="active"><a role="menuitem" tabindex="-1" href="javascript:void(0);"
value="hz">杭州</a></li>
</ul>
</span>
</span>
<div class="sui-btn-group ">
<button class="sui-btn btn-primary btn-large btn-bordered">最新</button>
<button class="sui-btn btn-primary btn-large btn-bordered">最热</button>
</div>
</div>
<a href="/blog/new" target="_blank" class="sui-btn btn-bordered btn-large nelson-btn">写文章</a>
</div>
<div>
<div class="home-content" style="min-height: 40px;line-height: 40px;color: #888">
<div class="home-content-title cursor" style="font-size: 14px">
文章标题
</div>
<div style="display: inline-block;width: 260px">
<div class="home-content-desc">
<span style="width: 60px;font-size: 14px">类型</span>
<span style="width: 60px"> 用户</span>
<span style="width: 60px;font-size: 14px">浏览量</span>
<span style="flex: 1;font-size: 14px">日期</span>
</div>
</div>
</div>
<hr style="height:1px;border:none;border-top:1px solid lightgray;"/>
</div>
{{range .Blogs}}
<div>
<div class="home-content">
<div class="home-content-title cursor">
<a href="/blog/{{.Id}}">{{.Title}}</a>
</div>
<div style="display: inline-block;width: 260px">
<div class="home-content-desc">
<span style="width: 60px;font-size: 14px">{{.CateName}}</span>
<span style="width: 60px" class="cursor">{{.UserName}}</span>
<span style="width: 60px;font-size: 14px">2555</span>
<span style="flex: 1;font-size: 14px">{{.CtimeStr}}</span>
</div>
</div>
</div>
<hr style="height:1px;border:none;border-top:1px solid #EEE;"/>
</div>
{{end}}
há 6 anos
</body>
há 6 anos
</html>