Skip to content

Commit 8784949

Browse files
committed
Add anchor links
The custom anchor link template is needed to remove the default content. It is also a convenient way to make the classes in our existing CSS match the new anchor links.
1 parent 0f74926 commit 8784949

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ build_search_index = false
88
highlight_code = true
99
highlight_theme = "boron"
1010
bottom_footnotes = true
11+
insert_anchor_links = "left"
1112

1213
[extra]
1314
# Put all your custom variables here

templates/anchor-link.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<a class="anchor" href="#{{ id }}" aria-hidden="true"></a>

0 commit comments

Comments
 (0)