The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: copyable header anchors (fixes #86)

+17
+13
assets/styles/base.scss
··· 12 12 font-weight: revert; 13 13 margin: revert; 14 14 padding: revert; 15 + 16 + &:hover > .hanchor { 17 + opacity: 1; 18 + } 19 + } 20 + 21 + .hanchor { 22 + font-family: Inter; 23 + margin-left: -1em; 24 + opacity: 0.3; 25 + transition: opacity 0.3s ease; 26 + color: var(--secondary); 27 + 15 28 } 16 29 17 30 p, ul, text {
+4
layouts/partials/textprocessing.html
··· 53 53 {{end}} 54 54 {{end}} 55 55 {{end}} 56 + 57 + {{/* Add copyable anchors */}} 58 + {{ $content = $content | replaceRE "(<h[1-9] id=\"([^\"]+)\">)(.+)(</h[1-9]>)" `<a href="#${2}">${1}<span class="hanchor" ariaLabel="Anchor"># </span>${3}${4}</a>` }} 59 + 56 60 {{ $content | safeHTML }}