2022-09-14 05:28:31 +00:00
|
|
|
{{define "layout/sidebar" }}
|
2022-09-18 16:16:40 +00:00
|
|
|
<div id="widget-area" class="widget-area" role="complementary">
|
|
|
|
<aside id="search-2" class="widget widget_search">
|
2023-03-07 09:13:12 +00:00
|
|
|
{{if .searchConf}}
|
|
|
|
<h2 class="widget-title">{{.searchConf}}</h2>
|
|
|
|
{{end}}
|
2022-09-18 16:16:40 +00:00
|
|
|
<form role="search" method="get" class="search-form" action="/">
|
|
|
|
<label>
|
|
|
|
<span class="screen-reader-text">搜索:</span>
|
|
|
|
<input type="search" class="search-field" placeholder="搜索…" value="{{.search}}" name="s">
|
|
|
|
</label>
|
|
|
|
<input type="submit" class="search-submit screen-reader-text" value="搜索">
|
|
|
|
</form>
|
|
|
|
</aside>
|
2023-03-06 15:43:58 +00:00
|
|
|
{{template "common/recent-posts" .}}
|
2023-03-07 09:13:12 +00:00
|
|
|
{{template "common/recent-comments" .}}
|
2023-03-06 12:53:51 +00:00
|
|
|
{{template "common/archives" .}}
|
|
|
|
<aside id="categories-2" class="widget widget_categories">
|
|
|
|
<h2 class="widget-title">分类</h2>
|
2022-09-18 16:16:40 +00:00
|
|
|
<nav aria-label="分类">
|
|
|
|
<ul>
|
|
|
|
{{range $k,$v := .categories}}
|
2023-03-05 13:23:19 +00:00
|
|
|
<li class="cat-item cat-item-{{$v.Terms.TermId}}">
|
|
|
|
<a href="/p/category/{{$v.Name}}">{{$v.Name}}</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
2022-09-18 16:16:40 +00:00
|
|
|
</ul>
|
2022-09-14 05:28:31 +00:00
|
|
|
|
2022-09-18 16:16:40 +00:00
|
|
|
</nav>
|
|
|
|
</aside>
|
|
|
|
<aside id="meta-2" class="widget widget_meta"><h2 class="widget-title">其他操作</h2>
|
|
|
|
<nav aria-label="其他操作">
|
|
|
|
<ul>
|
2022-09-22 11:57:23 +00:00
|
|
|
<li><a href="/feed">条目feed</a></li>
|
|
|
|
<li><a href="/comments/feed">评论feed</a></li>
|
2022-09-18 16:16:40 +00:00
|
|
|
</ul>
|
2022-09-14 05:28:31 +00:00
|
|
|
|
2022-09-18 16:16:40 +00:00
|
|
|
</nav>
|
|
|
|
</aside>
|
|
|
|
</div>
|
2022-09-14 05:28:31 +00:00
|
|
|
{{end}}
|