From 1942e2486ab34dd270291eb08a4597eeff33dd7c Mon Sep 17 00:00:00 2001
From: mariachana_moturi <112471942+esthermmoturi@users.noreply.github.com>
Date: Mon, 12 Aug 2024 09:34:45 -0700
Subject: [PATCH] Adding heading self link (#1487)
* Adding heading self link
* Change self heading url
---
assets/scss/main.scss | 2 +-
layouts/_default/_markup/render-heading.html | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
create mode 100644 layouts/_default/_markup/render-heading.html
diff --git a/assets/scss/main.scss b/assets/scss/main.scss
index 488876a9e..410d02016 100644
--- a/assets/scss/main.scss
+++ b/assets/scss/main.scss
@@ -19233,7 +19233,7 @@ nav.foldable-nav .with-child ul {
text-decoration: none;
visibility: hidden; }
.td-heading-self-link:before {
- content: '#'; }
+ content: '🔗'; }
@media (hover: none) and (pointer: coarse), (max-width: 576px) {
.td-heading-self-link {
visibility: visible; } }
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
new file mode 100644
index 000000000..a1c8e41d1
--- /dev/null
+++ b/layouts/_default/_markup/render-heading.html
@@ -0,0 +1,8 @@
+
+ {{- .Text | safeHTML -}}
+ {{ template "_default/_markup/_td-heading-self-link.html" . -}}
+
+
+{{- define "_default/_markup/_td-heading-self-link.html" -}}
+
+{{- end -}}
\ No newline at end of file