Slightly improve how tags are fetched
This commit is contained in:
parent
c48d7e0f3b
commit
db890fb19f
1 changed files with 5 additions and 5 deletions
|
@ -14,13 +14,13 @@
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
{{ if .Params.tags }}
|
{{- if .Params.tags -}}
|
||||||
<ul class="tags">
|
<ul class="tags">
|
||||||
{{ range .Params.tags }} {{ $href := print (absURL "tags/") (urlize .) }}
|
{{- range (.GetTerms "tags") -}}
|
||||||
<li><a href="{{ $href }}">{{ . }}</a></li>
|
<li><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></li>
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
|
|
||||||
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||||
{{ if and (gt (len $pages) 1) (in $pages . ) }}
|
{{ if and (gt (len $pages) 1) (in $pages . ) }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue