diff --git a/assets/style/main.sass b/assets/style/main.sass index 6276054..169a2d1 100644 --- a/assets/style/main.sass +++ b/assets/style/main.sass @@ -188,3 +188,6 @@ h6, .content h6 ul @extend .menu-list + +#current + font-weight: bold diff --git a/layouts/_default/frag/metadata.html b/layouts/_default/frag/metadata.html index 9ea8d36..d91dc35 100644 --- a/layouts/_default/frag/metadata.html +++ b/layouts/_default/frag/metadata.html @@ -1,2 +1,6 @@ - +
+ Date: + +
+{{ partial "series.html" .Params.series }} {{ partial "tags.html" .Params.tags }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c0bf69d..1ef6dc9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -12,6 +12,7 @@ {{ partial "status" . }}
+ {{ partial "series-items" . }} {{ partial "toc" . }}
{{ .Content }} diff --git a/layouts/partials/series-items.html b/layouts/partials/series-items.html new file mode 100644 index 0000000..82b3a32 --- /dev/null +++ b/layouts/partials/series-items.html @@ -0,0 +1,27 @@ +{{ $page := . }} +{{ with .Params.series }} + {{ $series := (site.GetPage "/series").GetPage . }} +
+
+

+ Series +

+
+
+ {{ with $series.Params.on }} +

This post is part of a series on {{.}}.

+ {{ else }} +

This post is part of the series {{ $series.Title }}

+ {{ end }} + +
+
+{{ end }} diff --git a/layouts/partials/series.html b/layouts/partials/series.html new file mode 100644 index 0000000..bf2be9b --- /dev/null +++ b/layouts/partials/series.html @@ -0,0 +1,7 @@ +{{ with . }} + {{ $series := (site.GetPage "/series").GetPage . }} +
+ Series: + {{ $series.Title }} +
+{{ end }} diff --git a/layouts/series/li.html b/layouts/series/li.html index e81fede..c4873b1 100644 --- a/layouts/series/li.html +++ b/layouts/series/li.html @@ -1,10 +1,4 @@
  • - - {{- with index .Site.Data.series .Data.Term }} - {{ .title }} - {{ else }} - {{ .Title }} - {{ end -}} - ({{ .Data.series | len }} posts) + {{ .Title }} ({{ .Data.series | len }} posts) {{- with .Params.summary }}: {{.}}{{ end }}