mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
* fix for issue #288 * refactor some conditionnal statements * adding hideFooter parameter to exampleSite config
This commit is contained in:
committed by
GitHub
parent
911a39528b
commit
5a10cb7e6c
@@ -26,6 +26,7 @@ disqusShortname = "yourdiscussshortname"
|
|||||||
|
|
||||||
dateformat = "January 2, 2006"
|
dateformat = "January 2, 2006"
|
||||||
|
|
||||||
|
hideFooter = false
|
||||||
hideCredits = false
|
hideCredits = false
|
||||||
hideCopyright = false
|
hideCopyright = false
|
||||||
since = 2019
|
since = 2019
|
||||||
|
|||||||
@@ -1,24 +1,26 @@
|
|||||||
<footer class="footer">
|
{{ if not .Site.Params.hideFooter | default false }}
|
||||||
<section class="container">
|
<footer class="footer">
|
||||||
{{ with .Site.Params.footercontent | safeHTML }}
|
<section class="container">
|
||||||
<p>{{.}}</p>
|
{{ with .Site.Params.footercontent | safeHTML }}
|
||||||
{{ end }}
|
<p>{{ . }}</p>
|
||||||
{{ if not .Site.Params.hideCopyright }}
|
|
||||||
{{ with .Site.Params.since }}
|
|
||||||
© {{ if lt . now.Year }}{{ . }} - {{ end }}{{ now.Year }}
|
|
||||||
{{ else }}
|
|
||||||
© {{ now.Year }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .Site.Params.Author }} {{ .Site.Params.Author }} {{ end }}
|
{{ if not .Site.Params.hideCopyright }}
|
||||||
{{ end }}
|
©
|
||||||
{{ if not .Site.Params.hideCredits }}
|
{{ if (and (.Site.Params.since) (lt .Site.Params.since now.Year)) }}
|
||||||
{{ if not .Site.Params.hideCopyright }} · {{ end }}
|
{{ .Site.Params.since }} -
|
||||||
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
|
{{ end }}
|
||||||
{{ end }}
|
{{ now.Year }}
|
||||||
{{ if .Site.Params.commit }}
|
{{ with .Site.Params.Author }} {{ . }} {{ end }}
|
||||||
{{ if .GitInfo }}
|
|
||||||
[<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ if not .Site.Params.hideCredits }}
|
||||||
</section>
|
{{ if not .Site.Params.hideCopyright }} · {{ end }}
|
||||||
</footer>
|
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
|
||||||
|
{{ end }}
|
||||||
|
{{ if .Site.Params.commit }}
|
||||||
|
{{ if .GitInfo }}
|
||||||
|
[<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</section>
|
||||||
|
</footer>
|
||||||
|
{{ end }}
|
||||||
Reference in New Issue
Block a user