jlelse
/
Indieroad
Archived
1
Fork 0

Fix things, sort tags

This commit is contained in:
Jan-Lukas Else 2020-04-20 20:12:21 +02:00
parent 87a89af128
commit ec722fa11f
5 changed files with 14 additions and 8 deletions

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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 }}

View File

@ -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 }}