diff --git a/README.md b/README.md index d9fa8451..7211ac7f 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ It's a versatile canvas that serves most web needs. - Safari and Firefox Reader View support - Search - Sections +- Series - Single column - Social links - Table of contents @@ -816,6 +817,8 @@ Use these CSS selectors to extend the default styling:
#paige-root
#paige-series
+ {{ range $i, $name := . -}} + {{- if gt $i 0 }}, {{ end -}} + + {{- with site.GetPage (print "series/" $name) -}} + {{ .Title | default $name }} + {{- else -}} + {{- $name -}} + {{- end -}} + {{- end }} +
+ {{ end }} + {{ with $authors }} {{ end }} diff --git a/layouts/partials/paige/page.html b/layouts/partials/paige/page.html index bd49d3fd..dcdab4f3 100644 --- a/layouts/partials/paige/page.html +++ b/layouts/partials/paige/page.html @@ -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 @@ {{ end }} + {{ with $series }} ++ {{ range $i, $name := . -}} + {{- if gt $i 0 }}, {{ end -}} + + {{- with site.GetPage (print "series/" $name) -}} + {{ .Title | default $name }} + {{- else -}} + {{- $name -}} + {{- end -}} + {{- end }} +
+ {{ end }} + {{ with $authors }} {{ end }}