Optional feedlinks in footer.
This commit is contained in:
parent
6748dd5aaf
commit
43abc37088
1 changed files with 31 additions and 13 deletions
6
layouts/partials/feedlinks.html
Normal file
6
layouts/partials/feedlinks.html
Normal 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>
|
||||
Loading…
Reference in a new issue