Fix things, sort tags
This commit is contained in:
parent
87a89af128
commit
ec722fa11f
|
@ -5,7 +5,7 @@
|
|||
<h1 class="main-title">{{ . }}</h1>
|
||||
{{ end }}
|
||||
{{ if not .Params.nometa }}
|
||||
{{ with partialCached "list_meta" . .RelPermalink }}
|
||||
{{ with partial "list_meta" . }}
|
||||
<div class="post-meta">{{ . }}</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{{ end }}
|
||||
{{ if not .Params.nometa }}
|
||||
<div class="post-meta">
|
||||
{{ partialCached "post_meta" . .RelPermalink }}
|
||||
{{ partial "post_meta" . }}
|
||||
{{ if (.Param "speak") }}
|
||||
<div id="speakBtn" class="item" style="display: none;"></div>
|
||||
{{ $speakScript := resources.Get "js/speak.js" | minify | fingerprint }}
|
||||
|
|
|
@ -1,12 +1,18 @@
|
|||
{{ if or (.GetTerms "tags") (.GetTerms "series") }}
|
||||
<div class="tags">
|
||||
{{ with (.GetTerms "series") }}
|
||||
<ul class="tags-list">
|
||||
{{ range (.GetTerms "series") }}
|
||||
<li class="tag-item"><div class="tag-link"><a class="p-category" href="{{ .RelPermalink }}" rel="tag">{{ .Title }}</a><sup>{{ len .Pages }}</sup></div></li>
|
||||
{{ end }}
|
||||
{{ range (.GetTerms "tags") }}
|
||||
{{ range sort . "Pages" "desc" }}
|
||||
<li class="tag-item"><div class="tag-link"><a class="p-category" href="{{ .RelPermalink }}" rel="tag">{{ .Title }}</a><sup>{{ len .Pages }}</sup></div></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ with (.GetTerms "tags") }}
|
||||
<ul class="tags-list">
|
||||
{{ range sort . "Pages" "desc" }}
|
||||
<li class="tag-item"><div class="tag-link"><a class="p-category" href="{{ .RelPermalink }}" rel="tag">{{ .Title }}</a><sup>{{ len .Pages }}</sup></div></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
|
@ -5,7 +5,7 @@
|
|||
<h1 class="main-title">{{ . }}</h1>
|
||||
{{ end }}
|
||||
{{ if not .Params.nometa }}
|
||||
{{ with partialCached "list_meta" . .RelPermalink }}
|
||||
{{ with partial "list_meta" . }}
|
||||
<div class="post-meta">{{ . }}</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<h1 class="main-title">{{ . }}</h1>
|
||||
{{ end }}
|
||||
{{ if not .Params.nometa }}
|
||||
{{ with partialCached "list_meta" . .RelPermalink }}
|
||||
{{ with partial "list_meta" . }}
|
||||
<div class="post-meta">{{ . }}</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Reference in New Issue
Block a user