A simple railroad shortcode
This commit is contained in:
parent
d0b322c853
commit
4d1cb10cc4
1 changed files with 5 additions and 0 deletions
5
layouts/shortcodes/railroad.html
Normal file
5
layouts/shortcodes/railroad.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{{- $id := .Get "id" -}}
|
||||||
|
<figure class="railroad-diagram"
|
||||||
|
{{- with $id }} id="{{ . }}"{{ end -}}
|
||||||
|
></figure>
|
||||||
|
{{ .Inner }}
|
Loading…
Add table
Add a link
Reference in a new issue