Browse Source

Linkify topics on main site

main
Jez Cope 4 months ago
parent
commit
7a27a697bb
  1. 8
      layouts/index.html

8
layouts/index.html

@ -5,7 +5,13 @@
<div class="columns">
<div class="column is-8 is-offset-2">
{{ with .Site.Params.Description }}{{.}}{{ end }}
{{ with .Site.Params.Topics }}{{ delimit . " & " }}{{ end }}
{{ with .Site.Params.Topics }}
{{ $last := sub (len .) 1 }}
{{ range $i, $x := . }}
<a href="/tags/{{ $x | urlize }}/">{{ $x }}</a>
{{ if lt $i $last }}<span class="ampersand">&</span>{{ end }}
{{ end }}
{{ end }}
</div>
</div>
</div>

Loading…
Cancel
Save