add header anchors

This commit is contained in:
Nathan Do 2022-12-06 15:53:26 -05:00
parent 56e36f2aa1
commit 01d2ee91bf
3 changed files with 27 additions and 0 deletions

View File

@ -48,3 +48,15 @@ scattered about.
}
PLUGINS = ['webassets']
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
'markdown.extensions.toc': {
'anchorlink': True,
},
},
'output_format': 'html5',
}

View File

@ -122,6 +122,10 @@
font-size: 16px;
}
a.toclink, a.toclink:visited {
color: #444444;
}
a, a:visited {
color: #2a7ae2;
text-decoration: none;
@ -191,6 +195,10 @@
color: white !important;
}
a.toclink, a.toclink:visited {
color: white !important;
}
a, a:visited {
color: #409df2 !important;
}

View File

@ -83,6 +83,13 @@ h1, h2, h3, h4, h5, h6 {
}
/**
* Anchor links
*/
a.toclink, a.toclink:visited {
color: $text-color;
}
/**
* Links