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

10 lines
252 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>
2022-11-01 04:09:45 +00:00
</div>&nbsp;
2022-11-01 03:50:43 +00:00
{{ end }}