linkify each section of the readme (#197)

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2020-07-01 09:24:34 +02:00
committed by GitHub
parent 21232f8516
commit dcea459226
3 changed files with 28 additions and 3 deletions
+1 -2
View File
@@ -26,5 +26,4 @@ sync:
# Scan all markdown files for Corefile snippets and check validity github.com/miekg/corecheck
.PHONY: test
test:
corecheck -exe $(PWD)/.coredns/coredns -dir content/blog
corecheck -exe $(PWD)/.coredns/coredns -dir content/manual
hugo server
+20 -1
View File
@@ -195,7 +195,26 @@ h3 a, .h3 a,
h4 a, .h4 a,
h5 a, .h5 a,
h6 a, .h6 a {
color: inherit; }
color: inherit;
text-decoration: none; }
h1 a:hover, .h1 a:hover,
h2 a:hover, .h2 a:hover,
h3 a:hover, .h3 a:hover,
h4 a:hover, .h4 a:hover,
h5 a:hover, .h5 a:hover,
h6 a:hover, .h6 a:hover {
color: inherit;
text-decoration: underline; }
h1 a:active, .h1 a:active,
h2 a:active, .h2 a:active,
h3 a:active, .h3 a:active,
h4 a:active, .h4 a:active,
h5 a:active, .h5 a:active,
h6 a:active, .h6 a:active {
color: inherit;
text-decoration: underline; }
p + h2,
p + h3,
+7
View File
@@ -0,0 +1,7 @@
$(document).ready(function() {
$(':header[id]').each(function() {
var anchor = document.createElement('a')
anchor.href = '#' + this.id
$(this).wrapInner(anchor)
});
});