2 {{- if (gt (len (findRE
"<h1" .Content))
0) }}
4 {{ replaceRE
"(<h1.*</h1>)" "</article>\n$1\n<article>" .Content | strings.TrimLeft
"\n " | safeHTML }}
7 {{ .Content | replaceRE
"\n" "\n " | safeHTML }}
10 {{ if .Params.categories }}[{{ range .Params.categories }}
<a href=
"/categories/{{ . }}">@{{ . }}
</a> {{ end }}]{{ end }}
11 {{ if .Params.tags }}[{{ range .Params.tags }}
<a href=
"/tags/{{ . }}">#{{ . }}
</a> {{ end}}]{{ end }}
12 <div class=
"last-modified">Last modified {{ dateFormat
"January 2 2006 15:04 MST" .Lastmod }}
</div>
13 <div class=
"page-nav" align=
"center">
14 {{- if .NextInSection }}
15 <a href=
"{{ .NextInSection.Permalink }}">Newer
</a>
17 <a href=
"{{ .Parent.Permalink }}"><{{ .Parent.Name }}
></a>
18 {{- if .PrevInSection }}
19 <a href=
"{{ .PrevInSection.Permalink }}">Older
</a>