Skip to content

Commit

Permalink
Merge pull request #5 from charlesrocket/anchor-link
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket authored Jan 23, 2024
2 parents 8f73bd8 + 7cfdb91 commit a25631f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions content/posts/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ title = "Posts"
sort_by = "date"
template = "posts.html"
page_template = "page.html"
insert_anchor_links = "left"
+++
11 changes: 8 additions & 3 deletions sass/_site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ nav.nav-bar ul li ul li {
width: 100%;
}

a.zola-anchor {
color: $green;
margin-right: 6px;
}

.frame-p {
width: auto;
height: auto;
Expand Down Expand Up @@ -476,7 +481,7 @@ nav.nav-bar ul li ul li {
margin-bottom: 10px;
display: block;
}
a:not(.btn):not(.pagination_pager) {
a:not(.btn):not(.pagination_pager):not(.zola-anchor) {
color: $shamrock-green;
border-bottom: 1px dotted $green;
}
Expand Down Expand Up @@ -848,7 +853,7 @@ nav.nav-bar ul li ul li {
color: darken($white, 30%);
}
.block-right {
a {
a:not(.zola-anchor) {
color: $overlay-color-dark;
}
}
Expand All @@ -874,7 +879,7 @@ nav.nav-bar ul li ul li {
small {
color: lighten($black, 40);
}
a:not(.btn):not(.pagination_pager) {
a:not(.btn):not(.pagination_pager):not(.zola-anchor) {
color: $green;
border-bottom: 1px dotted $shamrock-green;
}
Expand Down
1 change: 1 addition & 0 deletions templates/anchor-link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a class="zola-anchor" href="#{{ id }}" aria-label="Anchor link for: {{ id }}">#</a>

0 comments on commit a25631f

Please sign in to comment.