Fixes to feedlinks and read more links.

This commit is contained in:
Fredrik Jonsson 2017-05-20 21:45:29 +02:00
commit e4eecc6fcb
2 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,6 @@
</header>
<div>
{{ .Summary }}
<p class="read-more"><a class="read-more" href="{{ .Permalink }}">Read the rest of this posting</a></p>
</div>
<a class="read-more" href="{{ .Permalink }}">Read the rest of this posting</a>
</article>

View file

@ -1,6 +1,8 @@
{{ $list := .AlternativeOutputFormats -}}
{{ $length := (len $list) -}}
{{ if $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>
{{ end -}}