spoiler test
This commit is contained in:
parent
ec4610499d
commit
d6e98b9744
13
content/productivity/HowTo_create_habit.md
Normal file
13
content/productivity/HowTo_create_habit.md
Normal 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>}}
|
19
layouts/shortcodes/spoiler.html
Normal file
19
layouts/shortcodes/spoiler.html
Normal 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 }} {{ 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>
|
Loading…
Reference in New Issue
Block a user