码农笔录博客源码
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

67 rindas
3.4 KiB

pirms 6 gadiem
{{template "header"}}
pirms 6 gadiem
<title>首页 - 个人随笔</title>
<link type="text/css" rel="styleSheet" href="/static/css/index.css"/>
pirms 6 gadiem
</head>
<body>
<div class="root-container">
pirms 6 gadiem
{{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}}
pirms 6 gadiem
</body>
pirms 6 gadiem
</html>