hugo pages
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Eric X. Liu 2023-09-18 20:52:58 -07:00
parent 607be11983
commit 0fc636c648
3 changed files with 24 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
_gen/ _gen/
public/ public/
.hugo_build.lock

View File

@ -19,13 +19,12 @@ enableGitInfo = true
description = "Eric Liu's personal website" description = "Eric Liu's personal website"
keywords = "blog,developer,personal" keywords = "blog,developer,personal"
avatarurl = "images/gravatar.png" avatarurl = "images/gravatar.png"
footerContent = "Enter a text here."
hideFooter = false hideFooter = false
hideCredits = true hideCredits = true
hideCopyright = false hideCopyright = false
since = 2016 since = 2016
rtl= false rtl= false
commit="https://git.ericxliu.me/eric/ericxliu-me/commit"
colorscheme = "auto" colorscheme = "auto"
hideColorSchemeToggle = false hideColorSchemeToggle = false

View File

@ -0,0 +1,22 @@
{{ if not .Site.Params.hideFooter | default false }}
<footer class="footer">
<section class="container">
{{ with .Site.Params.footerContent | safeHTML }}
<p>{{ . }}</p>
{{ end }}
{{ if not .Site.Params.hideCopyright }}
©
{{ if (and (.Site.Params.since) (lt .Site.Params.since now.Year)) }}
{{ .Site.Params.since }} -
{{ end }}
{{ now.Year }}
{{ with .Site.Params.author }} {{ . }} {{ end }}
{{ end }}
{{ if not .Site.Params.hideCredits }}
{{ if not .Site.Params.hideCopyright }} · {{ end }}
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
{{ end }}
[commit]
</section>
</footer>
{{ end }}