Add series
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
{{ $modified := and .PublishDate .Lastmod (lt .PublishDate .Lastmod) }}
|
||||
{{ $pinned := .Params.paige.pin }}
|
||||
{{ $readingtime := .ReadingTime }}
|
||||
{{ $series := .Params.series }}
|
||||
{{ $summary := .Summary | htmlUnescape | plainify }}
|
||||
{{ $tags := .Params.tags | default slice | uniq }}
|
||||
{{ $title := .Title | markdownify }}
|
||||
@@ -74,6 +75,20 @@
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
{{ with $series }}
|
||||
<p class="mb-0 paige-series text-center text-secondary">
|
||||
{{ range $i, $name := . -}}
|
||||
{{- if gt $i 0 }}, {{ end -}}
|
||||
|
||||
{{- with site.GetPage (print "series/" $name) -}}
|
||||
<a class="link-secondary text-decoration-none" href="{{ .RelPermalink }}">{{ .Title | default $name }}</a>
|
||||
{{- else -}}
|
||||
{{- $name -}}
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
{{ with $authors }}
|
||||
<p class="mb-0 paige-authors text-center text-secondary">{{ . }}</p>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user