{{ partial "header.html" . -}}
+<p><a href="/"><-- Back</a></p>
<h2>{{.Site.Title}} – Articles for {{.Title}}</h2>
<ul>
-{{- range.Pages }}
+{{ $paginator := .Paginator }}
+{{- range .Paginator.Pages }}
<li><a href="{{ .RelPermalink }}">{{ .Date.Format "02/01/2006" }} {{.Title}}</a></li>
{{ end -}}
</ul>
+
+{{ if gt .Paginator.TotalPages 1 }}
+<p class="cern-blue">
+{{ if .Paginator.HasPrev }}<a href="{{ .Paginator.Prev.URL }}"><</a>{{ end }}
+{{ range .Paginator.Pagers }}
+ {{if ne $paginator . }}<a href="{{ .URL }}">{{.PageNumber}}</a>{{ else }}{{.PageNumber}}{{ end }}
+{{ end }}
+{{ if .Paginator.HasNext }}<a href="{{ .Paginator.Next.URL }}">></a>{{ end }}
+</p>
+{{ end }}
{{ partial "footer.html" .}}
-body,html{background:#000;color:#fff;max-width:1024px;margin:1em auto;padding:0 0.5em;font-family:monospace;font-size:large;}.cern-blue{color:#397ef6;}a,a:visited{color:#fff;}p{margin:0;padding:0}#post p{margin:12px 0;margin:revert;text-align:justify;}#post a,#post a:visited{color:#00b7ff;}pre code {display:block;padding:1em 1em 1em 1em;overflow-x:auto;}code{border:1px solid #ffb300;border-radius:5px;color:#19ca24;background:#202020;display:inline-block;}
+body,html{background:#000;color:#fff;max-width:1024px;margin:1em auto;padding:0 0.5em;font-family:monospace;font-size:large;}.cern-blue{color:#397ef6 !important;}a,a:visited{color:#fff;}p{margin:0;padding:0}#post p{margin:12px 0;margin:revert;text-align:justify;}#post a,#post a:visited{color:#00b7ff;}pre code {display:block;padding:1em 1em 1em 1em;overflow-x:auto;}code{border:1px solid #ffb300;border-radius:5px;color:#19ca24;background:#202020;display:inline-block;}