diff --git a/assets/css/post-single.css b/assets/css/post-single.css index d46cb83..f93e8d1 100644 --- a/assets/css/post-single.css +++ b/assets/css/post-single.css @@ -315,6 +315,18 @@ transform: scale(0.96); } +h1:hover .anchor, +h2:hover .anchor, +h3:hover .anchor, +h4:hover .anchor, +h5:hover .anchor, +h6:hover .anchor { + display: inline-flex; + color: var(--secondary); + margin-inline-start: 8px; + font-weight: 500; +} + @media screen and (max-width: 600px) { .post-content blockquote { margin: 0 calc(var(--gap) * -1); diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d4476ed..e46d05f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -41,7 +41,9 @@ {{- end }} -
{{ .Content }}
+
+ {{- partial "anchored_headings.html" .Content -}} +