Skip to content

Commit 170cbd9

Browse files
authored
Merge pull request #3863 from ndd7xv/anchor-headers
add header links
2 parents 4799c89 + 01d2ee9 commit 170cbd9

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

pelicanconf.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,15 @@
4848
}
4949

5050
PLUGINS = ['webassets']
51+
52+
MARKDOWN = {
53+
'extension_configs': {
54+
'markdown.extensions.codehilite': {'css_class': 'highlight'},
55+
'markdown.extensions.extra': {},
56+
'markdown.extensions.meta': {},
57+
'markdown.extensions.toc': {
58+
'anchorlink': True,
59+
},
60+
},
61+
'output_format': 'html5',
62+
}

themes/newsletter/templates/base.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@
122122
font-size: 16px;
123123
}
124124

125+
a.toclink, a.toclink:visited {
126+
color: #444444;
127+
}
128+
125129
a, a:visited {
126130
color: #2a7ae2;
127131
text-decoration: none;
@@ -191,6 +195,10 @@
191195
color: white !important;
192196
}
193197

198+
a.toclink, a.toclink:visited {
199+
color: white !important;
200+
}
201+
194202
a, a:visited {
195203
color: #409df2 !important;
196204
}

themes/rusted/static/css/_base.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ h1, h2, h3, h4, h5, h6 {
8383
}
8484

8585

86+
/**
87+
* Anchor links
88+
*/
89+
a.toclink, a.toclink:visited {
90+
color: $text-color;
91+
}
92+
8693

8794
/**
8895
* Links

0 commit comments

Comments
 (0)