Hugo内容
This commit is contained in:
11
Hugo/themes/nostyleplease/layouts/partials/footer.html
Normal file
11
Hugo/themes/nostyleplease/layouts/partials/footer.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ if site.Params.theme_config.isShowFooter }}
|
||||
{{ $footerContent := readFile "layouts/footer.md" }}
|
||||
{{ if and $footerContent (ne $footerContent "") }}
|
||||
{{ $footerContent | markdownify }}
|
||||
{{ else }}
|
||||
{{ warnf "layouts/footer.md file is not found or empty. Falling back to default footer." }}
|
||||
<footer class="site-footer">
|
||||
<p>© {{ now.Format "2006" }} {{ site.Title }}</p>
|
||||
</footer>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user