diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 3b9522e..b4474fc 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,8 +1,9 @@
{{ if site.Params.theme_config.isShowFooter }}
- {{ with resources.Get "layouts/footer.md" }}
- {{ .Content | markdownify }}
+ {{ $footerContent := readFile "layouts/footer.md" }}
+ {{ if and $footerContent (ne $footerContent "") }}
+ {{ $footerContent | markdownify }}
{{ else }}
- {{ warnf "layouts/footer.md file is not found, fallback to the default copyright" }}
+ {{ warnf "layouts/footer.md file is not found or empty. Falling back to default footer." }}