From 69e18b9634d5881372255f20dcaf65e24f6b6b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 5 Feb 2019 13:39:30 +0200 Subject: [PATCH] Fix bugify. --- site/content/docs/4.3/browser-bugs.md | 8 ++++---- site/layouts/{shortcodes => partials}/bugify.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename site/layouts/{shortcodes => partials}/bugify.html (98%) 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 "#") -}}