diff options
author | Hanzei <hanzei@mailbox.org> | 2018-06-27 12:30:11 +0300 |
---|---|---|
committer | Hanzei <hanzei@mailbox.org> | 2018-06-27 12:30:11 +0300 |
commit | db98ff7573c72a59abde6aec30748597adac570e (patch) | |
tree | 5a7f6a8bccbcaba126e5e943bcc73924963b3583 /layouts/index.html | |
parent | ae90b403882f9889f75c88b6ed27ae5eaeaea753 (diff) |
Render ancors from titles
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 4 |
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"> |