Compare commits
2 Commits
7c085b4d39
...
acf86b8d76
Author | SHA1 | Date | |
---|---|---|---|
acf86b8d76 | |||
a5cda19e5e |
|
@ -381,7 +381,7 @@ figure {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
a {
|
a, .ongoing-placeholder {
|
||||||
@include bordered-block;
|
@include bordered-block;
|
||||||
padding: 0.5em 1em 0.5em 1em;
|
padding: 0.5em 1em 0.5em 1em;
|
||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
|
@ -398,6 +398,10 @@ figure {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ongoing-placeholder {
|
||||||
|
border-style: dashed;
|
||||||
|
}
|
||||||
|
|
||||||
div.title {
|
div.title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div class="{{ .direction }} wrapper">
|
<div class="{{ .direction }} wrapper">
|
||||||
<a href="{{ .link }}">
|
<a href="{{ .page.RelPermalink }}">
|
||||||
{{ if eq .direction "previous" }}{{ partial "icon.html" "chevrons-left" }}{{ end }}
|
{{ if eq .direction "previous" }}{{ partial "icon.html" "chevrons-left" }}{{ end }}
|
||||||
<div class="title-subtitle">
|
<div class="title-subtitle">
|
||||||
{{ title .direction }} in Series
|
{{ title .direction }} in Series
|
||||||
|
|
10
layouts/partials/serieslinkplaceholder.html
Normal file
10
layouts/partials/serieslinkplaceholder.html
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<div class="{{ .direction }} wrapper">
|
||||||
|
<div class="ongoing-placeholder">
|
||||||
|
{{ if eq .direction "previous" }}{{ partial "icon.html" "chevrons-left" }}{{ end }}
|
||||||
|
<div class="title-subtitle">
|
||||||
|
{{ title .direction }} in Series
|
||||||
|
<div class="title">Coming soon!</div>
|
||||||
|
</div>
|
||||||
|
{{ if eq .direction "next" }}{{ partial "icon.html" "chevrons-right" }}{{ end }}
|
||||||
|
</a>
|
||||||
|
</div>
|
|
@ -1,14 +1,17 @@
|
||||||
{{- $page := . -}}
|
{{- $page := . -}}
|
||||||
{{ $term := index (.GetTerms "series") 0 }}
|
{{- $term := index (.GetTerms "series") 0 -}}
|
||||||
{{ with $term }}
|
{{- with $term -}}
|
||||||
{{- /* No idea why the 'Reverse' is needed? */ -}}
|
{{- /* No idea why the 'Reverse' is needed? */ -}}
|
||||||
{{ $pages := (site.Taxonomies.series.Get .Data.Term).Pages.ByDate.Reverse }}
|
{{- $pages := (site.Taxonomies.series.Get .Data.Term).Pages.ByDate.Reverse -}}
|
||||||
<nav class="series-navigation">
|
<nav class="series-navigation">
|
||||||
{{ with $pages.Prev $page }}
|
{{- with $pages.Prev $page -}}
|
||||||
{{ partial "serieslink.html" (dict "direction" "previous" "link" .RelPermalink "page" .) }}
|
{{- partial "serieslink.html" (dict "direction" "previous" "page" .) -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
{{ with $pages.Next $page }}
|
{{- $nextPage := $pages.Next $page -}}
|
||||||
{{ partial "serieslink.html" (dict "direction" "next" "link" .RelPermalink "page" .) }}
|
{{- if $nextPage -}}
|
||||||
{{ end }}
|
{{- partial "serieslink.html" (dict "direction" "next" "page" $nextPage) -}}
|
||||||
|
{{- else if eq $term.Params.status "ongoing" -}}
|
||||||
|
{{- partial "serieslinkplaceholder.html" (dict "direction" "next") -}}
|
||||||
|
{{- end -}}
|
||||||
</nav>
|
</nav>
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user