Initial website deployment
All checks were successful
Deploy Website / build-and-deploy (push) Successful in 1m44s

This commit is contained in:
Akshay Kolli
2026-07-02 00:28:25 -07:00
commit e240b99cb2
66 changed files with 2774 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
{{ $id := .Get 0 }}
{{ $figures := .Page.Scratch.Get "figures" | default dict }}
{{ $number := index $figures $id }}
<a class="xref" href="#{{ $id }}">Figure {{ with $number }}{{ . }}{{ else }}{{ $id }}{{ end }}</a>

View File

@@ -0,0 +1,20 @@
{{ $id := .Get "id" | default (printf "figure-%d" .Ordinal) }}
{{ $src := .Get "src" }}
{{ $caption := .Get "caption" }}
{{ $alt := .Get "alt" | default $caption }}
{{ $figures := .Page.Scratch.Get "figures" | default dict }}
{{ $number := add (len $figures) 1 }}
{{ .Page.Scratch.SetInMap "figures" $id $number }}
<figure id="{{ $id }}" class="figure">
{{ with $src }}
<img src="{{ . | relURL }}" alt="{{ $alt }}">
{{ end }}
{{ if or $caption .Inner }}
<figcaption>
<span class="figure-label">Figure {{ $number }}.</span>
{{ with $caption }}{{ . | markdownify }}{{ else }}{{ .Inner | markdownify }}{{ end }}
</figcaption>
{{ end }}
</figure>

View File

@@ -0,0 +1,10 @@
<a
id="snref-{{ .Ordinal }}"
class="sidenote-number"
href="#sn-{{ .Ordinal }}"
role="doc-noteref"
aria-label="Sidenote {{ add .Ordinal 1 }}"
></a>
<span id="sn-{{ .Ordinal }}" class="sidenote" role="doc-endnote">
{{ .Inner | markdownify }}
</span>