spoiler test

This commit is contained in:
Casual 2024-04-27 21:34:16 +03:00
parent ec4610499d
commit d6e98b9744
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,13 @@
+++
title = 'HowTo create habit'
date = 2024-04-27
+++
{{< rawhtml >}}
<details>
<summary>Details</summary>
Something small enough to escape casual notice.
asd
</details>
{{</rawhtml>}}

View File

@ -0,0 +1,19 @@
<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>