Add themes in-tree

This commit is contained in:
Dave Gallant
2024-01-07 08:49:07 -05:00
parent a5a09666f5
commit 604f3aaa4c
158 changed files with 19674 additions and 47 deletions

View File

@@ -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 }}>

View File

@@ -0,0 +1 @@
{{ partial "image.html" (dict "src" .Destination "alt" .PlainText "caption" .Title "page" .Page "lazy" true) }}

View File

@@ -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 */ -}}