colorized light, text formatting
[kengrimes.com/theme.git] / layouts / _default / single.html
index 24a73d4..7d6d5a2 100644 (file)
@@ -1,12 +1,12 @@
 {{- define "main" -}}
 {{- if (gt (len (findRE "<h1" .Content)) 0) }}
-    <article>
-    {{ replaceRE "(<h1.*</h1>)" "</article>\n$1\n<article>" .Content | strings.TrimLeft "\n " | safeHTML }}
+    <section>
+    {{ replaceRE "(<h1.*</h1>)" "</section>\n$1\n<section>" .Content | strings.TrimLeft "\n " | safeHTML }}
 {{- else -}}
-    <article>
+    <section>
       {{ .Content | replaceRE "\n" "\n      " | safeHTML }}
 {{- end }}
-    </article>
+    </section>
     {{ if .Params.categories }}[{{ range .Params.categories }} <a href="/categories/{{ . }}">@{{ . }}</a> {{ end }}]{{ end }}
     {{ if .Params.tags }}[{{ range .Params.tags }} <a href="/tags/{{ . }}">#{{ . }}</a> {{ end}}]{{ end }}
     <div class="last-modified">Last modified {{ dateFormat "January 2 2006 15:04 MST" .Lastmod }}</div>