|
|
@@ -14,9 +14,54 @@
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
|
|
{{ .Content }}
|
|
|
+
|
|
|
+ {{ $.Scratch.Set "pageTitle" .Title }}
|
|
|
+ {{ $.Scratch.Set "site" .Site }}
|
|
|
+ {{ $.Scratch.Set "prev" .PrevInSection }}
|
|
|
+ {{ $.Scratch.Set "next" .NextInSection }}
|
|
|
+
|
|
|
+ {{ with .Section}}
|
|
|
+
|
|
|
+ {{ range last 1 (where ($.Scratch.Get "site").RegularPages "Section" "catalogue") }}
|
|
|
+ {{ if ne .Title ($.Scratch.Get "pageTitle") }}
|
|
|
+ <p>
|
|
|
+ <a href="{{ .Permalink }}"><< Give us that ole classic</a>
|
|
|
+ </p>
|
|
|
+ {{ end }}
|
|
|
+
|
|
|
+ {{ $.Scratch.Set "firstTitle" .Title }}
|
|
|
+ {{ with ($.Scratch.Get "prev") }}
|
|
|
+ {{ if ne .Title ($.Scratch.Get "firstTitle") }}
|
|
|
+ <p>
|
|
|
+ <a href="{{ .Permalink }}">< Tell us that one from the other day</a>
|
|
|
+ </p>
|
|
|
+ {{ end }}
|
|
|
+ {{ end }}
|
|
|
+ {{ end }}
|
|
|
+
|
|
|
+ {{ range first 1 (where ($.Scratch.Get "site").RegularPages "Section" "catalogue") }}
|
|
|
+ {{ $.Scratch.Set "latestTitle" .Title }}
|
|
|
+
|
|
|
+ {{ with ($.Scratch.Get "next") }}
|
|
|
+ {{ if ne .Title ($.Scratch.Get "latestTitle") }}
|
|
|
+ <p>
|
|
|
+ <a href="{{ .Permalink }}">Spin me another tale, keeper ></a>
|
|
|
+ </p>
|
|
|
+ {{ end }}
|
|
|
+ {{ end }}
|
|
|
+
|
|
|
+ {{ if ne .Title ($.Scratch.Get "pageTitle") }}
|
|
|
+ <p>
|
|
|
+ <a href="{{ .Permalink }}">Give us something new >></a>
|
|
|
+ </p>
|
|
|
+ {{ end }}
|
|
|
+ {{ end }}
|
|
|
+ {{ end }}
|
|
|
+
|
|
|
+ {{- partial "footer.html" . -}}
|
|
|
+
|
|
|
</article>
|
|
|
|
|
|
- {{- partial "footer.html" . -}}
|
|
|
</div>
|
|
|
|
|
|
{{ end }}
|