Compare commits
No commits in common. "f677a3731cfa7624c63b89438f9e9d789798762e" and "25e9057dd8b1ddc571f3b26d80b72e86bbcbaa72" have entirely different histories.
f677a3731c
...
25e9057dd8
|
@ -424,7 +424,3 @@ blockquote {
|
|||
margin-left: 0;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
.early-navigation-wrapper {
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
|
|
@ -2,32 +2,44 @@
|
|||
<h2>{{ .Title }}</h2>
|
||||
<div class="post-subscript">
|
||||
<p>
|
||||
{{- range .Params.tags -}}
|
||||
{{ range .Params.tags }}
|
||||
<a class="button" href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}">{{ . }}</a>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
</p>
|
||||
<p>{{ i18n "postedOn" (.Date.Format "January 2, 2006") }}.</p>
|
||||
</div>
|
||||
|
||||
<div class="post-content">
|
||||
{{- if not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>") -}}
|
||||
{{ if not (eq .TableOfContents "<nav id=\"TableOfContents\"></nav>") }}
|
||||
<div class="table-of-contents">
|
||||
<div class="wrapper">
|
||||
<em>{{- i18n "tableOfContents" -}}</em>
|
||||
{{- .TableOfContents -}}
|
||||
<em>{{ i18n "tableOfContents" }}</em>
|
||||
{{ .TableOfContents }}
|
||||
</div>
|
||||
</div>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
||||
{{- if .Draft -}}
|
||||
{{- partial "warning.html" (i18n "postDraft") -}}
|
||||
{{- end -}}
|
||||
{{ if .Draft }}
|
||||
{{ partial "warning.html" (i18n "postDraft") }}
|
||||
{{ end }}
|
||||
|
||||
{{- .Content -}}
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{- end -}}
|
||||
{{- define "after" -}}
|
||||
{{- partial "seriesnav.html" . -}}
|
||||
{{ end }}
|
||||
{{ define "after" }}
|
||||
{{ $term := index (.GetTerms "series") 0 }}
|
||||
{{ with $term }}
|
||||
{{- /* No idea why the 'Reverse' is needed? */ -}}
|
||||
{{ $pages := (site.Taxonomies.series.Get .Data.Term).Pages.ByDate.Reverse }}
|
||||
<nav id="SeriesNavigation" class="container">
|
||||
{{ with $pages.Prev page }}
|
||||
{{ partial "serieslink.html" (dict "direction" "previous" "link" .RelPermalink "page" .) }}
|
||||
{{ end }}
|
||||
{{ with $pages.Next page }}
|
||||
{{ partial "serieslink.html" (dict "direction" "next" "link" .RelPermalink "page" .) }}
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
<hr class="container footer-divider">
|
||||
<footer class="container">
|
||||
<p>{{ i18n "contactFooter" | safeHTML }}</p>
|
||||
|
@ -39,4 +51,4 @@
|
|||
to learn more about me!</p>
|
||||
-->
|
||||
</footer>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
{{ $term := index (.GetTerms "series") 0 }}
|
||||
{{ with $term }}
|
||||
{{- /* No idea why the 'Reverse' is needed? */ -}}
|
||||
{{ $pages := (site.Taxonomies.series.Get .Data.Term).Pages.ByDate.Reverse }}
|
||||
<nav id="SeriesNavigation" class="container">
|
||||
{{ with $pages.Prev page }}
|
||||
{{ partial "serieslink.html" (dict "direction" "previous" "link" .RelPermalink "page" .) }}
|
||||
{{ end }}
|
||||
{{ with $pages.Next page }}
|
||||
{{ partial "serieslink.html" (dict "direction" "next" "link" .RelPermalink "page" .) }}
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
|
@ -1,3 +0,0 @@
|
|||
<div class="early-navigation-wrapper">
|
||||
{{ partial "seriesnav.html" .Page }}
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user