diff --git a/site/layouts/partials/bugify.html b/site/layouts/partials/bugify.html
index 7edacb5d61..845cdf7a33 100644
--- a/site/layouts/partials/bugify.html
+++ b/site/layouts/partials/bugify.html
@@ -1,12 +1,8 @@
-{{- $words := (split . " ") -}}
+{{- $words := split . " " -}}
{{- range $word := $words -}}
- {{- if (strings.Contains $word "#") -}}
- {{- $separator := false -}}
-
- {{- if (strings.Contains $word ",") -}}
- {{- $separator = true -}}
- {{- end -}}
+ {{- if (in $word "#") -}}
+ {{- $has_separator := cond (in $word ",") true false -}}
{{- $data := split $word "#" -}}
{{- $bug_cat := replace (index $data 0) "\n" "" -}}
@@ -32,7 +28,7 @@
{{- else if (eq $bug_cat "Normalize") -}}
Normalize #{{ $bug_id }}
{{- end -}}
- {{- if (eq $separator true) }}, {{ end -}}
+ {{- if $has_separator }}, {{ end -}}
{{- else -}}
{{- $word -}}