mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-01-22 09:46:15 -06:00
Remove series position indicator -- racy and buggy
This commit is contained in:
parent
50a207b8ee
commit
d34b2a56d7
@ -187,11 +187,13 @@ pre > code {
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* hugo just can't handle this feature
|
||||||
.post-series-position {
|
.post-series-position {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
float: right;
|
||||||
opacity: .75;
|
opacity: .75;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
.post-title,
|
.post-title,
|
||||||
.author-name {
|
.author-name {
|
||||||
|
@ -1,9 +1,3 @@
|
|||||||
<div class="post-series-position">
|
|
||||||
{{ if .Scratch.Get "series_position" }}
|
|
||||||
({{ .Scratch.Get "series_position" }}/{{ .Scratch.Get "series_total" }})
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 class="post-title">
|
<h2 class="post-title">
|
||||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
|
@ -11,12 +11,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="series-page-list">
|
<div class="series-page-list">
|
||||||
{{ $i := 0 }}
|
|
||||||
{{ $total := len .Data.Pages }}
|
|
||||||
{{ range .Data.Pages.Reverse }}
|
{{ range .Data.Pages.Reverse }}
|
||||||
{{ $i = add 1 $i }}
|
|
||||||
{{ .Scratch.Set "series_position" $i }}
|
|
||||||
{{ .Scratch.Set "series_total" $total }}
|
|
||||||
<article class="post">
|
<article class="post">
|
||||||
{{ .Render "summary" }}
|
{{ .Render "summary" }}
|
||||||
</article>
|
</article>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user