Optional feedlinks in footer.

This commit is contained in:
Fredrik Jonsson 2017-05-19 14:34:28 +02:00
commit 43abc37088

View file

@ -0,0 +1,6 @@
{{ $list := .AlternativeOutputFormats -}}
{{ $length := (len $list) -}}
<p>Subscribe{{ with .Section }} to section {{ . }}{{ end }}: {{ range $index, $element := $list -}}
<a href="{{ .Permalink | safeURL }}">{{ .Name }}</a>{{ if ne (add $index 1) $length }} | {{ end }}
{{- end -}}
</p>