From 3c0dbcc668b4c4c092f8fcb96404eb119f8b0131 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 3 Jan 2021 23:11:06 +0100 Subject: [PATCH] fix: use .GetPage to link contact page if contact.md exists --- layouts/partials/site-footer.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/site-footer.html b/layouts/partials/site-footer.html index 0aca849..22da2db 100644 --- a/layouts/partials/site-footer.html +++ b/layouts/partials/site-footer.html @@ -7,10 +7,10 @@ Feed {{ end }} - {{ if (fileExists "contact.md") }} + {{ with .GetPage "contact.md" }} - Contact + Contact {{ end }} {{ with .Site.Params.GeekblogLegalNotice }}