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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanzei <hanzei@mailbox.org>2018-06-27 12:30:11 +0300
committerHanzei <hanzei@mailbox.org>2018-06-27 12:30:11 +0300
commitdb98ff7573c72a59abde6aec30748597adac570e (patch)
tree5a7f6a8bccbcaba126e5e943bcc73924963b3583 /layouts/index.html
parentae90b403882f9889f75c88b6ed27ae5eaeaea753 (diff)
Render ancors from titles
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 9af0899..3b8faaf 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -36,7 +36,7 @@
<!-- Tell them all about it! -->
{{ with .Site.GetPage "page" "about" }}
-<div class="section" id="about">
+<div class="section" id="{{ .Title | urlize }}">
<div class="container">
<h2 class="title is-2 has-text-centered">{{ .Title }}</h2>
<div class="columns"><!-- Avatar and about.md side by side except mobile -->
@@ -66,7 +66,7 @@
<!-- Let's chat, shall we? -->
{{ with .Site.GetPage "page" "contact" }}
-<div class="section" id="contact">
+<div class="section" id="{{ .Title | urlize }}">
<div class="container has-text-centered">
<h2 class="title is-2">{{ .Title }}</h2>
<div class="markdown">