first version
This commit is contained in:
10
layouts/shortcodes/cell.html
Normal file
10
layouts/shortcodes/cell.html
Normal file
@ -0,0 +1,10 @@
|
||||
{{ $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>
|
Reference in New Issue
Block a user