lorescape/layouts/partials/feedlinks.html

9 lines
353 B
HTML
Raw Normal View History

2020-10-14 21:31:14 +00:00
{{ $list := .AlternativeOutputFormats -}}
{{ $length := (len $list) -}}
{{ if $list -}}
2020-10-15 02:58:46 +00:00
<p>Subscribe{{ with .Section }} to {{ . }}{{ end }}: {{ range $index, $element := $list -}}
2020-10-14 21:31:14 +00:00
<a rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">{{ .Name }}</a>{{ if ne (add $index 1) $length }} | {{ end }}
{{- end -}}
</p>
{{ end -}}