snek-tech-blog/layouts/shortcodes/hover.html

10 lines
246 B
HTML
Raw Normal View History

2022-11-01 03:50:43 +00:00
{{ if .IsNamedParams }}
<div class="tooltip">{{ .Inner }}
<span class="tooltiptext">{{ .Get "hover-text" }}</span>
</div>
{{ else }}
<div class="tooltip">{{ .Inner }}
<span class="tooltiptext">{{ .Get 0 }}</span>
</div>
{{ end }}