diff --git a/layouts/blog/list.html b/layouts/blog/list.html index c6d24c2..f8cd8ce 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -31,11 +31,15 @@
+ {{ $tag_count := 0 }} {{ range .Params.tags }} + {{ if lt $tag_count 2 }} {{ $name := . }} {{ with $.Site.GetPage (printf "/tags/%s" (. | urlize)) }} #{{ $name }} {{ end }} + {{ $tag_count = add $tag_count 1 }} + {{ end }} {{ end }}