From 1bf6cd7c0010cecd3662008633bc5d3aa1e71782 Mon Sep 17 00:00:00 2001 From: "max.mehl" Date: Mon, 8 Jul 2019 16:24:22 +0200 Subject: [PATCH] only link if href is not empty --- layouts/shortcodes/links.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/links.html b/layouts/shortcodes/links.html index 2858519..d649d4a 100644 --- a/layouts/shortcodes/links.html +++ b/layouts/shortcodes/links.html @@ -8,7 +8,7 @@
  • {{.desc}} – {{- $len := (len .links) -}} {{- range $index, $element := .links -}} - {{.text}} + {{ with .href }}{{ end }}{{.text}}{{ with .href }}{{end}} {{- if ne (add $index 1) $len -}}, {{- end -}} {{- end -}} {{- with .date }} ({{.}}){{ end }}