mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-07 00:58:13 +00:00
Tweak theme
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
|
||||
{{- .Text | safeHTML -}}
|
||||
<a href="#{{ .Anchor | safeURL }}" class="post-heading__anchor" aria-hidden="true">#</a>
|
||||
</h{{ .Level }}>
|
@@ -0,0 +1,13 @@
|
||||
{{- $isExternal := strings.HasPrefix .Destination "http" -}}
|
||||
<a
|
||||
href="{{ .Destination | safeURL }}"
|
||||
{{ with .Title }}
|
||||
title="{{ . }}"
|
||||
{{ end }}
|
||||
{{ if $isExternal }}
|
||||
class="link--external" target="_blank" rel="noreferrer"
|
||||
{{ end }}
|
||||
>
|
||||
{{- .Text | safeHTML -}}
|
||||
</a>
|
||||
{{- /* Trimm trailing whitespace */ -}}
|
Reference in New Issue
Block a user