Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/danielkvist/hugo-piercer-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Bazile <gromain.baz@gmail.com>2019-09-10 18:33:06 +0300
committerDaniel <danielkvist@protonmail.com>2019-09-10 20:44:18 +0300
commitb42c763906ab63e0c4d633deb52a98f9f99fca01 (patch)
tree8e30e8a7487eb0e612fe0cd0d234137668799513
parent3b1efd8c13f6aa534f95892af76b488c450703ab (diff)
sections.html: add anchorize call to change id links
-rw-r--r--layouts/partials/sections.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/sections.html b/layouts/partials/sections.html
index 986eee0..77b8d6e 100644
--- a/layouts/partials/sections.html
+++ b/layouts/partials/sections.html
@@ -18,7 +18,7 @@
{{ end }}
-<section class="section bkg-image" id="{{ .Title }}" style="{{ safeCSS $bkg }} {{ safeCSS $bc }}">
+<section class="section bkg-image" id="{{ .Title | anchorize }}" style="{{ safeCSS $bkg }} {{ safeCSS $bc }}">
<h1 class="section__title">{{ .Title }}</h1>
{{ .Content }}
</section>