mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-12 05:42:44 +02:00
Add section shortcode.
It seems there are some issues in wrapping complex blocks of markdown in html tags, especially when the block contains other short codes. Content would either only partially render or fail completely.
This commit is contained in:
parent
7584401279
commit
45c0414b3d
2 changed files with 31 additions and 6 deletions
layouts/shortcodes
9
layouts/shortcodes/section.html
Normal file
9
layouts/shortcodes/section.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ with .Get 0 }}
|
||||
{{ if eq . "begin" }}
|
||||
<section>
|
||||
{{ else if eq . "end" }}
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue