mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
11 lines
458 B
HTML
11 lines
458 B
HTML
{{- $content := .Inner | .Page.RenderString -}}
|
|
{{- $id := dict "Scratch" .Page.Scratch | partial "function/id.html" -}}
|
|
{{- $tag := .Get 1 | default "div" -}}
|
|
{{- printf `<%v id="%v">%v</%v>` $tag $id $content $tag | safeHTML -}}
|
|
|
|
{{- $style := .Get 0 | printf "#%v{%v}" $id -}}
|
|
{{- $styleArr := .Page.Store.Get "styleArr" | default slice -}}
|
|
{{- if not (in $styleArr $style) -}}
|
|
{{- $styleArr | append $style | .Page.Store.Set "styleArr" -}}
|
|
{{- end -}}
|