mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-23 15:19:22 +00:00
Initial post commit i have also added more short codes
This commit is contained in:
9
themes/lhs/layouts/shortcodes/block_separator.html
Normal file
9
themes/lhs/layouts/shortcodes/block_separator.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ $blocks := split .Inner "<!-- block_separator -->" }}
|
||||
{{ range $index, $block := $blocks }}
|
||||
<div class="block">
|
||||
{{ $block | markdownify | safeHTML }}
|
||||
</div>
|
||||
{{ if ne (add $index 1) (len $blocks) }}
|
||||
<hr class="separator" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user