From 611f836e02a8597302bb21322c4b37e55378708a Mon Sep 17 00:00:00 2001 From: Michael Schnerring <3743342+schnerring@users.noreply.github.com> Date: Fri, 15 Oct 2021 14:22:46 +0200 Subject: [PATCH] Simplify heading rendering --- layouts/_default/_markup/.gitkeep | 0 layouts/_default/_markup/render-heading.html | 1 + layouts/docs/single.html | 4 ++-- layouts/partials/main/headline-hash.html | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 layouts/_default/_markup/.gitkeep create mode 100644 layouts/_default/_markup/render-heading.html delete mode 100644 layouts/partials/main/headline-hash.html diff --git a/layouts/_default/_markup/.gitkeep b/layouts/_default/_markup/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..8abeac6 --- /dev/null +++ b/layouts/_default/_markup/render-heading.html @@ -0,0 +1 @@ +{{ .Text | safeHTML }} diff --git a/layouts/docs/single.html b/layouts/docs/single.html index 5c58c54..28bb90b 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -31,7 +31,7 @@ {{ partial "sidebar/docs-toc.html" . }} {{ end -}} - {{ partial "main/headline-hash.html" .Content }} + {{ .Content }} {{ if .Site.Params.editPage -}} {{ partial "main/edit-page.html" . }} {{ end -}} @@ -45,4 +45,4 @@ --> -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/partials/main/headline-hash.html b/layouts/partials/main/headline-hash.html deleted file mode 100644 index 826fa32..0000000 --- a/layouts/partials/main/headline-hash.html +++ /dev/null @@ -1 +0,0 @@ -{{ . | replaceRE "()" `${1} ${3}` | safeHTML }} \ No newline at end of file