From: Bjørn Erik Pedersen Date: Tue, 5 Feb 2019 11:39:30 +0000 (+0200) Subject: Fix bugify. X-Git-Tag: v5.0.0-alpha1~1204 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69e18b9634d5881372255f20dcaf65e24f6b6b76;p=thirdparty%2Fbootstrap.git Fix bugify. --- diff --git a/site/content/docs/4.3/browser-bugs.md b/site/content/docs/4.3/browser-bugs.md index c464f8507d..70b26cf3e8 100644 --- a/site/content/docs/4.3/browser-bugs.md +++ b/site/content/docs/4.3/browser-bugs.md @@ -30,8 +30,8 @@ See also: {{ .browser | chomp }} {{ .summary | markdownify }} - {% include bugify.html content=bug.upstream_bug %} - {% include bugify.html content=bug.origin %} + {{ partial "bugify" .upstream_bug }} + {{ partial "bugify" .origin }} {{- end }} {{< /bug.inline >}} @@ -59,8 +59,8 @@ We publicly list these "most wanted" feature requests here, in the hopes of expe {{ .browser }} {{ .summary | markdownify }} - {% include bugify.html content=feat.upstream_bug %} - {% include bugify.html content=feat.origin %} + {{ partial "bugify" .upstream_bug }} + {{ partial "bugify" .origin }} {{ end }} {{< /feat.inline >}} diff --git a/site/layouts/shortcodes/bugify.html b/site/layouts/partials/bugify.html similarity index 98% rename from site/layouts/shortcodes/bugify.html rename to site/layouts/partials/bugify.html index b064d29a5e..7edacb5d61 100644 --- a/site/layouts/shortcodes/bugify.html +++ b/site/layouts/partials/bugify.html @@ -1,4 +1,4 @@ -{{- $words := (split .Inner " ") -}} +{{- $words := (split . " ") -}} {{- range $word := $words -}} {{- if (strings.Contains $word "#") -}}