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

10 lines
256 B
HTML
Raw Normal View History

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