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