diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index 5327d41..af59a6d 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -78,6 +78,12 @@ background-color: var(--background-2); } +.post-series-position { + position: relative; + float: right; + opacity: .75; +} + .post-title { margin-bottom: 10px; } diff --git a/layouts/_default/summary/series.html b/layouts/_default/summary/series.html index 05434d3..2222a6e 100644 --- a/layouts/_default/summary/series.html +++ b/layouts/_default/summary/series.html @@ -28,8 +28,13 @@
diff --git a/layouts/_default/summary/series_post.html b/layouts/_default/summary/series_post.html new file mode 100644 index 0000000..8ce485a --- /dev/null +++ b/layouts/_default/summary/series_post.html @@ -0,0 +1,29 @@ +
+
+ {{ if .Scratch.Get "series_position" }} + ({{ .Scratch.Get "series_position" }}/{{ .Scratch.Get "series_total" }}) + {{ end }} +
+ +

+ {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} + {{ .Title | markdownify }} + {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} +

+ + {{ partial "post-metadata/short.html" . }} + + {{ with .Resources.GetMatch "feature" }} +
+ {{ partial "figure.html" (dict "src" . "border" true) }} +
+ {{ end }} + +
+ {{ partial "description-or-summary.html" . }} +
+ +
+ {{ i18n "read_more" }} → +
+
diff --git a/layouts/series/term.html b/layouts/series/term.html index 355d602..9ed9e95 100644 --- a/layouts/series/term.html +++ b/layouts/series/term.html @@ -9,7 +9,12 @@