diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 37fe512..3b9522e 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,4 +1,10 @@ {{ if site.Params.theme_config.isShowFooter }} - {{ $footerContent := readFile "layouts/footer.md" }} - {{ $footerContent | markdownify }} -{{ end }} \ No newline at end of file + {{ with resources.Get "layouts/footer.md" }} + {{ .Content | markdownify }} + {{ else }} + {{ warnf "layouts/footer.md file is not found, fallback to the default copyright" }} + + {{ end }} +{{ end }}