mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-18 14:52:10 +00:00
11 lines
270 B
HTML
11 lines
270 B
HTML
|
{{ $codeIndex := .Page.Scratch.Get "codeIndex" }}
|
||
|
{{ $id := .Get "id" }}
|
||
|
<figure itemscope itemtype="https://schema.org/SoftwareSourceCode"
|
||
|
{{ if $id }}
|
||
|
id="{{ $id }}"
|
||
|
{{- else -}}
|
||
|
id="code-{{ sub $codeIndex 1 }}"
|
||
|
{{ end }}>
|
||
|
{{ .Inner | markdownify }}
|
||
|
</figure>
|