Commit 03ed1d8
authored
Fix anchorlinks using Hugo link render hooks (#25)
Hugo link render hooks contain a variable reference to the current page.
Using this we can prepend the current page's path to header anchor
links. This fixes the issue where all anchorlinks for headers link back
to the site homepage.1 parent 6f22f7d commit 03ed1d8
File tree
3 files changed
+5
-2
lines changed- site/layouts
- _default/_markup
- docs
- partials/main
3 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
This file was deleted.
0 commit comments