Casual_blog/layouts/shortcodes/spoiler.html

20 lines
579 B
HTML
Raw Normal View History

2024-04-27 18:34:16 +00:00
<div class="spoiler panel panel-default">
<div class='spoiler_block'>
{{ if (.Get "text") }}
<h4 class='spoiler_block_head'>{{ with .Get "text" }}{{ . | safeHTML }}{{ else }}&nbsp;{{ end }}</h4>
{{ end }}
<a href='#' class='spoiler-block-icon spoiler-block-icon-zoom-in spoiler_block_show'>
click to show
</a>
{{ if .Inner }}
<a href='#' class='spoiler-block-icon spoiler-block-icon-zoom-out spoiler_block_hide' style='display: none;'>
click to hide
</a>
{{ end }}
<div class='spoiler_block_content' style='display: none;'>
{{ .Inner }}
</div>
</div>
</div>