diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2021-12-26 00:30:09 -0500 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2021-12-26 00:30:09 -0500 |
commit | 8555cf72dec9321fa010296ce6988cf7b7cf602b (patch) | |
tree | 006ad83008cc8e08524631ebb4b638bfbfa490fd /themes/hugo-coder/layouts/partials/footer.html | |
parent | 2e1cd1a569ea516be6bfdc681411cae51632a290 (diff) |
convert theme from submodule to regular files
Diffstat (limited to 'themes/hugo-coder/layouts/partials/footer.html')
m--------- | themes/hugo-coder | 0 | ||||
-rw-r--r-- | themes/hugo-coder/layouts/partials/footer.html | 26 |
2 files changed, 26 insertions, 0 deletions
diff --git a/themes/hugo-coder b/themes/hugo-coder deleted file mode 160000 | |||
Subproject 55b2a150f990bc56364dba347bc9acc6aab07be | |||
diff --git a/themes/hugo-coder/layouts/partials/footer.html b/themes/hugo-coder/layouts/partials/footer.html new file mode 100644 index 0000000..c184381 --- /dev/null +++ b/themes/hugo-coder/layouts/partials/footer.html | |||
@@ -0,0 +1,26 @@ | |||
1 | {{ if not .Site.Params.hideFooter | default false }} | ||
2 | <footer class="footer"> | ||
3 | <section class="container"> | ||
4 | {{ with .Site.Params.footerContent | safeHTML }} | ||
5 | <p>{{ . }}</p> | ||
6 | {{ end }} | ||
7 | {{ if not .Site.Params.hideCopyright }} | ||
8 | © | ||
9 | {{ if (and (.Site.Params.since) (lt .Site.Params.since now.Year)) }} | ||
10 | {{ .Site.Params.since }} - | ||
11 | {{ end }} | ||
12 | {{ now.Year }} | ||
13 | {{ with .Site.Params.author }} {{ . }} {{ end }} | ||
14 | {{ end }} | ||
15 | {{ if not .Site.Params.hideCredits }} | ||
16 | {{ if not .Site.Params.hideCopyright }} · {{ end }} | ||
17 | {{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>. | ||
18 | {{ end }} | ||
19 | {{ if .Site.Params.commit }} | ||
20 | {{ if .GitInfo }} | ||
21 | [<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>] | ||
22 | {{ end }} | ||
23 | {{ end }} | ||
24 | </section> | ||
25 | </footer> | ||
26 | {{ end }} | ||