Skip to content
Snippets Groups Projects
Unverified Commit 63db956f authored by kogeletey's avatar kogeletey
Browse files

[feature]: create anchors for quick page navigation

templates: implementation anchors links
sass: now everything works whe you hover over the title
content/reference: special parameter for enable pages on section anchors
root: config adding anchor slugify  setting.
parent 2f16bfac
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,8 @@ taxonomies = [ ...@@ -22,7 +22,8 @@ taxonomies = [
] ]
[slugify] [slugify]
paths = "on" paths = "safe"
anchors = "on"
[markdown] [markdown]
highlight_code = true highlight_code = true
......
...@@ -3,4 +3,5 @@ title = "Reference" ...@@ -3,4 +3,5 @@ title = "Reference"
sort_by = "weight" sort_by = "weight"
weight = 3 weight = 3
insert_anchor_links = "left"
+++ +++
...@@ -27,11 +27,13 @@ article { ...@@ -27,11 +27,13 @@ article {
h2 { h2 {
margin-top: 1.25rem; margin-top: 1.25rem;
margin-bottom: 1.25rem; margin-bottom: 1.25rem;
&:hover::before { &:hover{
a.anchors::before {
content: '#'; content: '#';
margin-right: 0.25rem; margin-right: 0.25rem;
color: var(--green); color: var(--green);
} }
}
} }
h3, h3,
h4, h4,
...@@ -176,6 +178,7 @@ nav.navigation { ...@@ -176,6 +178,7 @@ nav.navigation {
} }
} }
@media (max-width: 1000px) { @media (max-width: 1000px) {
article { article {
padding-top: 2.5rem; padding-top: 2.5rem;
......
<a class = "anchors" href="#{{ id }}"></a>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment