From 9791db1ce71801fb0da32d3d64cf93d700f64852 Mon Sep 17 00:00:00 2001 From: Caleb Jasik Date: Mon, 22 Feb 2021 12:48:49 -0600 Subject: Bug Fix: Empty .Site.Params.contentDir (#312) * Bug Fix: Empty .Site.Params.contentDir When .Site.Params.contentDir is left as the default: "content", calling .Site.Params.contentDir returns nothing, or maybe an empty string. To fix this, we set a default value for .Site.Params.contentDir to "content" and the url is built correctly. * Use the `default` function instead of `or` https://gohugo.io/functions/default/ --- layouts/partials/docs/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/partials/docs') diff --git a/layouts/partials/docs/footer.html b/layouts/partials/docs/footer.html index e171077..f38e679 100644 --- a/layouts/partials/docs/footer.html +++ b/layouts/partials/docs/footer.html @@ -15,7 +15,7 @@ {{ if and .File .Site.Params.BookRepo .Site.Params.BookEditPath }}
- + Edit {{ i18n "Edit this page" }} -- cgit v1.2.3