← hugo-clarity

Update footer.html

bc7b5600e1a7f56f45d7d4d5816dc774c2d26f09 · Iain Henderson · Feb 3, 2023 08:11

Use default instead of relying on truthiness

+1 −1 · 1 file changed

  • layouts/partials/footer.html +1 −1
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 1de15ec..5f19ea9 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,5 +1,5 @@
 {{- $s := .Site.Params }}
-{{- $c := or .Site.Copyright .Site.Title }}
+{{- $c := default .Site.Title .Site.Copyright  }}
 {{- if or .Params.enableMathNotation $s.enableMathNotation }}
   {{ partialCached "math" . }}
 {{- end }}