hugo-theme-hilfe/layouts/_default/single.html

9 lines
345 B
HTML
Raw Normal View History

2020-01-12 15:33:02 +01:00
{{ 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 }}