diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-08-21 15:22:18 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-08-21 15:28:29 +0700 |
commit | 5ad561e83990cbc3ccd65f1306b2512dd9d97736 (patch) | |
tree | b86899c70213ab6683566bb44b28d23a9e72cf75 /layouts/_default/_markup | |
parent | 8cf4b72be8af0900a249961174eca6dc6bef4a48 (diff) | |
download | blog-5ad561e83990cbc3ccd65f1306b2512dd9d97736.tar.gz |
Add anchor link
Diffstat (limited to 'layouts/_default/_markup')
-rw-r--r-- | layouts/_default/_markup/render-heading.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html new file mode 100644 index 0000000..257cc4c --- /dev/null +++ b/layouts/_default/_markup/render-heading.html @@ -0,0 +1,5 @@ +<h{{ .Level }} id="{{ .Anchor | safeURL }}"> + <a href="#{{ .Anchor | safeURL}}"> + {{ .Text }} + </a> +</h{{ .Level }}> |