Skip to content

Commit

Permalink
Add anchor links with styling
Browse files Browse the repository at this point in the history
  • Loading branch information
gamingrobot committed Jun 5, 2024
1 parent 53b7478 commit a508976
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/posts/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ sort_by = "date"
template = "posts.html"
transparent = true
in_search_index = false
insert_anchor_links = "right"
[extra]
hide_copyright = true
+++
21 changes: 21 additions & 0 deletions themes/hyde-hyde-hyde-zola/sass/hyde-hyde/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,27 @@ h5 {
font-size: $h5-font-size;
}

h2,
h3,
h4 {
.zola-anchor {
@include link-no-decoration();
visibility: hidden;
cursor: pointer;
vertical-align: middle;
font-size: 50%;
margin-left: 0.2rem;
}

&:hover {
.zola-anchor {
@include link-no-decoration();
visibility: visible;
//animation: fade-in 5s ease-in-out;
}
}
}

figure {
max-width: 100%;
margin: 0;
Expand Down

0 comments on commit a508976

Please sign in to comment.