mirror of
https://github.com/tomfran/typo.git
synced 2025-04-25 21:19:55 +03:00
Fixed tags display on posts
This commit is contained in:
parent
c46280ea36
commit
9c16b36696
1 changed files with 2 additions and 3 deletions
|
@ -35,19 +35,18 @@
|
|||
{{ if .Param "showTags" }}
|
||||
|
||||
{{ $taxonomy := "tags" }}
|
||||
|
||||
{{ with .Param $taxonomy }}
|
||||
{{ $last := sub (. | len) 1 }}
|
||||
|
||||
<div class="single-tags">
|
||||
{{ range $index, $tag := . }}
|
||||
{{ with $.Site.GetPage (printf "/%s/%s" $taxonomy $tag) -}}
|
||||
<span>
|
||||
<a href="{{ .Permalink }}">#{{ $tag | urlize }}</a>
|
||||
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
|
||||
</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue