hugo-theme-hilfe/layouts/_default/single.html
2020-01-12 15:33:02 +01:00

8 lines
345 B
HTML

{{ define "main" }}
{{ partial "page-header" . }}
<article class="gdoc-markdown">
<h1>{{ partial "title" . }}</h1>
{{ .Content | replaceRE `<nav id="TableOfContents">\s*<ul>\s*<li>\s*<ul>` `<nav id="TableOfContents"><ul>` | replaceRE `</ul>\s*</li>\s*</ul>\s*</nav>` `</ul></nav>` | safeHTML }}
</article>
{{ end }}