From 047cecf5e03e27c57026b4c7a8d50a5e0bfc6c3c Mon Sep 17 00:00:00 2001 From: Sangeeth Sudheer Date: Sun, 17 Nov 2024 16:24:22 +0530 Subject: Add article heading anchors Adds heading anchors (#) that appear when user hovers over headings in articles. Clicking the anchor will scroll viewport until heading is aligned to top and update the address bar with the hash. This makes it easy to copy URLs that link to a specific heading in the article. --- layouts/_default/_markup/render-heading.html | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 layouts/_default/_markup/render-heading.html (limited to 'layouts/_default') diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..44430d6 --- /dev/null +++ b/layouts/_default/_markup/render-heading.html @@ -0,0 +1,4 @@ + + {{ .Text }} + # + -- cgit v1.2.3