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

10 lines
256 B
HTML

{{ if .IsNamedParams }}
<span class="tooltip">{{ .Inner }}
<span class="tooltiptext">{{ .Get "hover-text" }}</span>
</span>
{{ else }}
<span class="tooltip">{{ .Inner }}
<span class="tooltiptext">{{ .Get 0 }}</span>
</span>&nbsp;
{{ end }}