This commit is contained in:
parent
607be11983
commit
0fc636c648
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
_gen/
|
||||
public/
|
||||
.hugo_build.lock
|
||||
|
@ -19,13 +19,12 @@ enableGitInfo = true
|
||||
description = "Eric Liu's personal website"
|
||||
keywords = "blog,developer,personal"
|
||||
avatarurl = "images/gravatar.png"
|
||||
footerContent = "Enter a text here."
|
||||
hideFooter = false
|
||||
hideCredits = true
|
||||
hideCopyright = false
|
||||
since = 2016
|
||||
rtl= false
|
||||
|
||||
commit="https://git.ericxliu.me/eric/ericxliu-me/commit"
|
||||
colorscheme = "auto"
|
||||
hideColorSchemeToggle = false
|
||||
|
||||
|
22
layouts/partials/footer.html
Normal file
22
layouts/partials/footer.html
Normal 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 }}
|
Loading…
Reference in New Issue
Block a user