histoiredunpied/layouts/shortcodes/cell.html

11 lines
284 B
HTML
Raw Normal View History

2020-02-14 16:40:46 +01:00
{{ $class := .Get "class" }}
{{ $body := .Get "text" | default .Inner }}
{{ $markdown := .Get "markdown" | default false }}
<div class="cell{{ with $class }} {{ . }}{{ end }}">
{{ if $markdown }}
{{ $.Page.RenderString .Inner }}
{{ else }}
{{ .Inner }}
{{ end }}
</div>