1
Fork 0

Add anchor links to titles

This commit is contained in:
Jake Howard 2020-07-23 18:37:44 +01:00
parent 28ab1cbdec
commit 83b0f6efeb
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}"> <a class="anchor" href="#{{ .Anchor | safeURL }}">#</a> {{ .Text | safeHTML }}</h{{ .Level }}>

View file

@ -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;