Commit a87b433
committed
Feat: Add anchor links to blog post headings
This commit introduces anchor links to all headings in the blog posts. This allows users to directly link to specific sections of a post, improving navigation and shareability.
The implementation uses a Hugo heading render hook to customize the HTML output of the headings. It also includes CSS to style the anchor links, making them visible only on hover to maintain a clean look.1 parent 1ce6f9d commit a87b433
2 files changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments