From d34b2a56d7e50681c5b128be771e05069a42313b Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sat, 18 Mar 2023 21:11:07 -0500 Subject: [PATCH] Remove series position indicator -- racy and buggy --- assets/css/bobastyle.css | 2 ++ layouts/_default/summary.html | 6 ------ layouts/series/summary.html | 5 ----- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index 66d5710..ff071e5 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -187,11 +187,13 @@ pre > code { margin-top: 0; } +/* hugo just can't handle this feature .post-series-position { position: relative; float: right; opacity: .75; } +*/ .post-title, .author-name { diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 6ef73b0..492a31f 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,9 +1,3 @@ -
- {{ if .Scratch.Get "series_position" }} - ({{ .Scratch.Get "series_position" }}/{{ .Scratch.Get "series_total" }}) - {{ end }} -
-

{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} {{ .Title | markdownify }} diff --git a/layouts/series/summary.html b/layouts/series/summary.html index 77c4623..480a595 100644 --- a/layouts/series/summary.html +++ b/layouts/series/summary.html @@ -11,12 +11,7 @@
- {{ $i := 0 }} - {{ $total := len .Data.Pages }} {{ range .Data.Pages.Reverse }} - {{ $i = add 1 $i }} - {{ .Scratch.Set "series_position" $i }} - {{ .Scratch.Set "series_total" $total }}
{{ .Render "summary" }}