Compare commits

...

2 Commits

Author SHA1 Message Date
3937ed4172 Do not unique-by-series when a flag is set
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2026-04-05 16:18:12 -07:00
5e84ea2a06 Make some fixes to broken visuals
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2026-04-05 16:02:09 -07:00
4 changed files with 7 additions and 2 deletions

View File

@@ -18,10 +18,12 @@
{{- if .linkSeries -}}
{{- $term := index (.page.GetTerms "series") 0 -}}
{{- with $term -}}
{{- if (not ($term.Param "donotunique")) -}}
<div class="series-link">
{{- partial "icon.html" "corner-down-right" -}}
<p>{{- i18n "latestInSeries" }} <a href="{{ $term.Permalink }}">{{ $term.Title }}</a></p>
</div>
{{- end -}}
{{- end -}}
{{- end }}
</li>

View File

@@ -1,5 +1,5 @@
{{- if .Params.summary -}}
{{ .Params.summary }}
{{ .Params.summary | markdownify | plainify }}
{{- else -}}
{{ .Summary | plainify | truncate 180 }}
{{- end -}}

View File

@@ -3,7 +3,7 @@
{{- $tmpScratch := newScratch -}}
{{- range $post := (where (where site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") -}}
{{- $term := index ($post.GetTerms "series") 0 -}}
{{- if $term -}}
{{- if (and $term (not ($term.Param "donotunique"))) -}}
{{- if not ($tmpScratch.Get $term.Permalink) -}}
{{- $tmpScratch.Set $term.Permalink true -}}
{{- $scratch.Add "pages" $post -}}

View File

@@ -1,5 +1,6 @@
<span class="sidenote">
<label class="sidenote-label" for="{{- .Get 1 -}}">{{- .Get 2 | markdownify -}}</label>
{{- /* chomp trailing whitespace */ -}}
<input class="sidenote-checkbox" style="display: none;" type="checkbox" id="{{- .Get 1 -}}"></input>
{{- if $offset := .Get 3 -}}
<span class="sidenote-content sidenote-{{- .Get 0 -}}" style="margin-top: {{- $offset -}}rem">
@@ -10,4 +11,6 @@
{{- .Inner -}}
<span class="sidenote-delimiter">]</span>
</span>
{{- /* chomp trailing whitespace */ -}}
</span>
{{- /* chomp trailing whitespace */ -}}