From 7a27a697bb5a2784f0190e0efbb8bf8fbe09c6b7 Mon Sep 17 00:00:00 2001 From: Jez Cope Date: Sun, 4 Apr 2021 17:13:11 +0100 Subject: [PATCH] Linkify topics on main site --- layouts/index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index 62ca803..045422f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -5,7 +5,13 @@
{{ with .Site.Params.Description }}{{.}}{{ end }} - {{ with .Site.Params.Topics }}{{ delimit . " & " }}{{ end }} + {{ with .Site.Params.Topics }} + {{ $last := sub (len .) 1 }} + {{ range $i, $x := . }} + {{ $x }} + {{ if lt $i $last }}&{{ end }} + {{ end }} + {{ end }}