on master help sign in
Merge pull request #551 from ynx0/anchor-link
1c24b89David Kerschner
sass/_main.scss+19
@@ -651,3 +651,22 @@ hr {
651nav::-webkit-scrollbar {
651nav::-webkit-scrollbar {
652 display: none;
652 display: none;
653}
653}
654+
655+
656+// custom anchor styling
657+a.zola-anchor {
658+ visibility: hidden;
659+ padding: 0 0.1rem;
660+ &:hover {
661+ background-color: black;
662+ color: white;
663+ }
664+}
665+
666+h1, h2, h3, h4, h5, h6 {
667+ &:hover > a.zola-anchor {
668+ visibility: visible;
669+ border-bottom-style: none;
670+ }
671+}
672+
templates/anchor-link.htmlnew file+2
@@ -0,0 +1,2 @@
1+<!-- original at https://github.com/getzola/zola/blob/29b073640e26d96ab167c88ca70b18660f176cb4/docs/sass/_docs.scss#L48 -->
2+<a class="zola-anchor" href="#{{ id }}" aria-label="Anchor link for: {{ id }}">¶</a>