hacker.tours-website/themes/zen/layouts/shortcodes/wrapper.html
2024-06-13 22:14:05 +02:00

3 lines
248 B
HTML

{{ $display := "inline" -}}
{{ if eq (.Get 1) "block" }}{{ $display = "block" }}{{ end -}}
<div class="{{ .Get 0 }}">{{ if eq (.Get 1) "nomarkdown" }}{{ .Inner }}{{ else }}{{ .Inner | $.Page.RenderString (dict "display" $display) }}{{ end }}</div>