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

10 lines
252 B
HTML

{{ 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>&nbsp;
{{ end }}