Compare commits
2 Commits
312d0d37c6
...
3937ed4172
| Author | SHA1 | Date | |
|---|---|---|---|
| 3937ed4172 | |||
| 5e84ea2a06 |
@@ -18,10 +18,12 @@
|
|||||||
{{- if .linkSeries -}}
|
{{- if .linkSeries -}}
|
||||||
{{- $term := index (.page.GetTerms "series") 0 -}}
|
{{- $term := index (.page.GetTerms "series") 0 -}}
|
||||||
{{- with $term -}}
|
{{- with $term -}}
|
||||||
|
{{- if (not ($term.Param "donotunique")) -}}
|
||||||
<div class="series-link">
|
<div class="series-link">
|
||||||
{{- partial "icon.html" "corner-down-right" -}}
|
{{- partial "icon.html" "corner-down-right" -}}
|
||||||
<p>{{- i18n "latestInSeries" }} <a href="{{ $term.Permalink }}">{{ $term.Title }}</a></p>
|
<p>{{- i18n "latestInSeries" }} <a href="{{ $term.Permalink }}">{{ $term.Title }}</a></p>
|
||||||
</div>
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{- if .Params.summary -}}
|
{{- if .Params.summary -}}
|
||||||
{{ .Params.summary }}
|
{{ .Params.summary | markdownify | plainify }}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{ .Summary | plainify | truncate 180 }}
|
{{ .Summary | plainify | truncate 180 }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{{- $tmpScratch := newScratch -}}
|
{{- $tmpScratch := newScratch -}}
|
||||||
{{- range $post := (where (where site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") -}}
|
{{- range $post := (where (where site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") -}}
|
||||||
{{- $term := index ($post.GetTerms "series") 0 -}}
|
{{- $term := index ($post.GetTerms "series") 0 -}}
|
||||||
{{- if $term -}}
|
{{- if (and $term (not ($term.Param "donotunique"))) -}}
|
||||||
{{- if not ($tmpScratch.Get $term.Permalink) -}}
|
{{- if not ($tmpScratch.Get $term.Permalink) -}}
|
||||||
{{- $tmpScratch.Set $term.Permalink true -}}
|
{{- $tmpScratch.Set $term.Permalink true -}}
|
||||||
{{- $scratch.Add "pages" $post -}}
|
{{- $scratch.Add "pages" $post -}}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<span class="sidenote">
|
<span class="sidenote">
|
||||||
<label class="sidenote-label" for="{{- .Get 1 -}}">{{- .Get 2 | markdownify -}}</label>
|
<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>
|
<input class="sidenote-checkbox" style="display: none;" type="checkbox" id="{{- .Get 1 -}}"></input>
|
||||||
{{- if $offset := .Get 3 -}}
|
{{- if $offset := .Get 3 -}}
|
||||||
<span class="sidenote-content sidenote-{{- .Get 0 -}}" style="margin-top: {{- $offset -}}rem">
|
<span class="sidenote-content sidenote-{{- .Get 0 -}}" style="margin-top: {{- $offset -}}rem">
|
||||||
@@ -10,4 +11,6 @@
|
|||||||
{{- .Inner -}}
|
{{- .Inner -}}
|
||||||
<span class="sidenote-delimiter">]</span>
|
<span class="sidenote-delimiter">]</span>
|
||||||
</span>
|
</span>
|
||||||
|
{{- /* chomp trailing whitespace */ -}}
|
||||||
</span>
|
</span>
|
||||||
|
{{- /* chomp trailing whitespace */ -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user