From 83b0f6efeb7b47df8be01a25e0339b6fc870d402 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 23 Jul 2020 18:37:44 +0100 Subject: [PATCH] Add anchor links to titles --- layouts/_default/_markup/render-heading.html | 1 + static/src/scss/style.scss | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 layouts/_default/_markup/render-heading.html diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..0e5e303 --- /dev/null +++ b/layouts/_default/_markup/render-heading.html @@ -0,0 +1 @@ + # {{ .Text | safeHTML }} diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index fd650ca..c855c3a 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -208,6 +208,12 @@ p, li, h1, h2, h3, h4, h5, h6 { } } +h1, h2, h3, h4, h5, h6 { + .anchor { + font-weight: lighter; + } +} + .header-image { width: 100%; height: 35vh;