Merge branch 'master' of github.com:vickylai/hugo-theme-introduction into docs_script

This commit is contained in:
Vicky 2018-10-19 11:08:14 +08:00
commit 7362d9e14c
2 changed files with 4 additions and 3 deletions

View file

@ -3,7 +3,7 @@ git:
env:
- HUGO_VERSION="0.48"
- HUGO_VERSION="0.49.1"
- HUGO_VERSION="0.49.2"
install:
- wget -q https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz

View file

@ -43,10 +43,11 @@
</div>
{{ end }}
{{ if .Params.tags }}
{{ $len := (len .Params.tags) }}
<p>
Tag{{ if gt (len .Params.tags) 1 }}s{{ end }}:
Tag{{ if gt $len 1 }}s{{ end }}:
{{ range $index, $tag := .Params.tags }}
{{ if gt $index 0 }}, {{ end }}<a href="{{ "/tags/" | absLangURL }}{{ . | urlize }}">{{ . }}</a>
<a href="{{ "/tags/" | absLangURL }}{{ . | urlize }}">{{ . }}</a>{{ if ne (add $index 1) $len }},{{ end }}
{{ end }}
</p>
{{ end }}