projects
/
kengrimes.com
/
theme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
layouts reverted to .NextInSection following hugo patch
[kengrimes.com/theme.git]
/
layouts
/
_default
/
single.html
diff --git
a/layouts/_default/single.html
b/layouts/_default/single.html
index
4b2d4c4
..
2f9c4a2
100644
(file)
--- a/
layouts/_default/single.html
+++ b/
layouts/_default/single.html
@@
-1,4
+1,5
@@
{{- define "main" -}}
{{- define "main" -}}
+<small>{{ .Page.Lastmod }}</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 -}}
{{- 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 -}}
@@
-8,12
+9,12
@@
</article>
{{- end }}
<div align="center">
</article>
{{- end }}
<div align="center">
- {{- if .Page.PrevInSection }}
- <a href="{{ .Page.PrevInSection.URL }}">Prev</a>
- {{- end }}
- <a href="{{ .Parent.URL }}"><{{ .Parent.Name }}></a>
{{- if .Page.NextInSection }}
{{- if .Page.NextInSection }}
- <a href="{{ .Page.NextInSection.URL }}">Next</a>
+ <a href="{{ .Page.NextInSection.URL }}">Newer</a>
+ {{- end }}
+ <a href="{{ .Parent.URL }}"><{{ .Parent.Name }}></a>
+ {{- if .Page.PrevInSection }}
+ <a href="{{ .Page.PrevInSection.URL }}">Older</a>
{{- end }}
</div>
{{- end -}}
{{- end }}
</div>
{{- end -}}