mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-25 02:02:11 +00:00
7 lines
359 B
HTML
7 lines
359 B
HTML
|
{{ $codeIndex := (.Page.Scratch.Get "codeIndex") }}
|
||
|
<figcaption>
|
||
|
<strong itemprop="name"> <span itemprop="codeSampleType">Code snippet</span> {{ $codeIndex }}</strong>{{with .Get "lang"}} (<span itemprop="programmingLanguage">{{ . }}</span>){{end}}:
|
||
|
{{ .Inner | markdownify | safeHTML }}
|
||
|
</figcaption>
|
||
|
{{- .Page.Scratch.Set "codeIndex" (add 1 $codeIndex) -}}
|