formatted for web testing
[kengrimes.com/theme.git] / layouts / _default / single.html
index 4b2d4c4..080f1a2 100644 (file)
@@ -1,4 +1,5 @@
 {{- define "main" -}}
+<small>{{ .Page.Lastmod.Local }}</small>
 {{- if (gt (len (findRE "<h1" .Content)) 0) }}
 {{ replaceRE "(<h1.*</h1>)" "</article>\n$1\n<article>" .Content | strings.TrimLeft "\n " | strings.TrimPrefix "</article>" | replaceRE "\n" "\n      " | safeHTML }}</article>
 {{- else -}}
@@ -7,13 +8,13 @@
         {{ .Content | replaceRE "\n" "\n      " | safeHTML }}
       </article>
 {{- end }}
-    <div align="center">
-      {{- if .Page.PrevInSection }}
-      <a href="{{ .Page.PrevInSection.URL }}">Prev</a>
-      {{- end }}
-      <a href="{{ .Parent.URL }}">&lt;{{ .Parent.Name }}&gt</a>
+    <div class="page-nav" align="center">
       {{- if .Page.NextInSection }}
-      <a href="{{ .Page.NextInSection.URL }}">Next</a>
+      <a href="{{ .Page.NextInSection.URL }}">Newer</a>
+      {{- end }}
+      <a href="{{ .Parent.URL }}">&lt;{{ .Parent.Name }}&gt;</a>
+      {{- if .Page.PrevInSection }}
+      <a href="{{ .Page.PrevInSection.URL }}">Older</a>
       {{- end }}
     </div>
 {{- end -}}