mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-07 17:12:27 +00:00
Rename theme path
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 @@
|
||||
{{ partial "image.html" (dict "src" .Destination "alt" .PlainText "caption" .Title "page" .Page "lazy" true) }}
|
@@ -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