Skip to content

Commit

Permalink
add shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
weru committed Nov 1, 2020
1 parent 067e25b commit 1f9a84b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layouts/shortcodes/block.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{- $modifiers := .Get 0 }}
<div{{ with $modifiers }}class="{{ . }}"{{ end }}>
{{ markdownify .Inner }}
</div>
5 changes: 5 additions & 0 deletions layouts/shortcodes/grid.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- $grids := .Get 0 }}
{{- $modifiers := .Get 1 }}
<div class="grid_{{ $grids }}{{ with $modifiers }} {{ . }}{{ end }}">
{{ .Inner }}
</div>
2 changes: 2 additions & 0 deletions layouts/shortcodes/partial.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{- $partial := .Get 0 }}
{{- partial $partial . }}

0 comments on commit 1f9a84b

Please sign in to comment.