Update to current version
All checks were successful
Building & Deploying Website / Deploy-Website (push) Successful in 12s
All checks were successful
Building & Deploying Website / Deploy-Website (push) Successful in 12s
This commit is contained in:
7
themes/hugo-coder/layouts/_markup/render-heading.html
Normal file
7
themes/hugo-coder/layouts/_markup/render-heading.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
|
||||
{{ .Text | safeHTML }}
|
||||
<a class="heading-link" href="#{{ .Anchor | safeURL }}">
|
||||
<i class="fa-solid fa-link" aria-hidden="true" title="{{ i18n "link_to_heading" | default "Link to heading" }}"></i>
|
||||
<span class="sr-only">{{ i18n "link_to_heading" | default "Link to heading" }}</span>
|
||||
</a>
|
||||
</h{{ .Level }}>
|
||||
1
themes/hugo-coder/layouts/_markup/render-link.html
Normal file
1
themes/hugo-coder/layouts/_markup/render-link.html
Normal file
@@ -0,0 +1 @@
|
||||
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }} {{ if findRE "^(https?:)?//" (lower .Destination) }} class="external-link" target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>
|
||||
Reference in New Issue
Block a user