hugo-geekblog/layouts/partials/content.html

2 lines
180 B
HTML
Raw Permalink Normal View History

2021-02-21 12:24:55 +00:00
{{ .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 }}