projects
/
kengrimes.com
/
theme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optimization pass
[kengrimes.com/theme.git]
/
layouts
/
_default
/
single.html
diff --git
a/layouts/_default/single.html
b/layouts/_default/single.html
index
44a9d4a
..
24a73d4
100644
(file)
--- a/
layouts/_default/single.html
+++ b/
layouts/_default/single.html
@@
-1,7
+1,7
@@
{{- define "main" -}}
{{- if (gt (len (findRE "<h1" .Content)) 0) }}
<article>
{{- define "main" -}}
{{- if (gt (len (findRE "<h1" .Content)) 0) }}
<article>
- {{ replaceRE "(<h1.*</h1>)" "</article>\n$1\n<article>" .Content | strings.TrimLeft "\n " |
replaceRE "\n" "\n " |
safeHTML }}
+ {{ replaceRE "(<h1.*</h1>)" "</article>\n$1\n<article>" .Content | strings.TrimLeft "\n " | safeHTML }}
{{- else -}}
<article>
{{ .Content | replaceRE "\n" "\n " | safeHTML }}
{{- else -}}
<article>
{{ .Content | replaceRE "\n" "\n " | safeHTML }}