Add theme

This commit is contained in:
Daniel Mason 2022-05-08 18:47:31 +12:00
parent e11c3f7f7d
commit 7589ad1190
2580 changed files with 52545 additions and 4 deletions

View file

@ -0,0 +1,8 @@
{{- $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.Scratch.Get "this").styleArr | default slice -}}
{{- $styleArr | append $style | .Page.Scratch.SetInMap "this" "styleArr" -}}