Small shortcode cleanuo & use .IsNamedParams

This commit is contained in:
2022-05-13 11:33:55 -05:00
parent e9266cdead
commit 8e3fb4038a
5 changed files with 14 additions and 5 deletions

View File

@ -1 +1,5 @@
<abbr title="{{ .Get "title" }}">{{ .Inner }}</abbr>
{{ if .IsNamedParams }}
<abbr title="{{ .Get "title" }}">{{ .Inner }}</abbr>
{{ else }}
<abbr title="{{ .Get 0 }}">{{ .Inner }}</abbr>
{{ end }}