hugo-theme-lowtech/layouts/shortcodes/cell.html

11 lines
284 B
HTML
Raw Normal View History

2020-02-26 23:41:42 +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>