2020-04-21 16:55:06 +02:00
|
|
|
{{- if ne .Site.Params.footer.enable false -}}
|
|
|
|
<footer class="footer">
|
|
|
|
<div class="footer-container">
|
|
|
|
{{- /* Custom Content */ -}}
|
|
|
|
{{- with .Site.Params.footer.custom -}}
|
|
|
|
<div class="footer-line">
|
|
|
|
{{- safeHTML . -}}
|
|
|
|
</div>
|
2019-08-26 19:15:00 +02:00
|
|
|
{{- end -}}
|
2020-02-03 11:38:10 +01:00
|
|
|
|
2020-04-21 16:55:06 +02:00
|
|
|
{{- /* Hugo and LoveIt */ -}}
|
|
|
|
{{- if ne .Site.Params.footer.hugo false -}}
|
|
|
|
<div class="footer-line">
|
|
|
|
{{- $hugo := printf `<a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo %s">Hugo</a>` hugo.Version -}}
|
|
|
|
{{- printf (T "poweredBySome") $hugo | safeHTML }} | {{ T "theme" }} - <a href="https://github.com/dillonzq/LoveIt" target="_blank" rel="noopener noreffer" title="LoveIt {{ .Scratch.Get `version` }}"><i class="far fa-heart fa-fw"></i> LoveIt</a>
|
|
|
|
</div>
|
2019-08-26 19:15:00 +02:00
|
|
|
{{- end -}}
|
2020-02-03 11:38:10 +01:00
|
|
|
|
2020-04-21 16:55:06 +02:00
|
|
|
<div class="footer-line">
|
|
|
|
{{- /* Copyright year */ -}}
|
|
|
|
{{- if ne .Site.Params.footer.copyright false -}}
|
|
|
|
<i class="far fa-copyright fa-fw"></i>
|
|
|
|
{{- with .Site.Params.footer.since -}}
|
|
|
|
<span itemprop="copyrightYear">
|
|
|
|
{{- if lt . now.Year }}{{ . }} - {{ end }}{{ now.Year -}}
|
|
|
|
</span>
|
|
|
|
{{- else -}}
|
|
|
|
<span itemprop="copyrightYear">{{ now.Year }}</span>
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
2020-02-03 18:55:24 +01:00
|
|
|
|
2020-04-21 16:55:06 +02:00
|
|
|
{{- /* Author */ -}}
|
|
|
|
{{- if ne .Site.Params.footer.author false -}}
|
|
|
|
<span class="author" itemprop="copyrightHolder"> <a href="{{ $.Site.Author.link | default (relLangURL `/`) }}" target="_blank">{{ .Site.Author.name }}</a></span>
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- /* License */ -}}
|
|
|
|
{{- with .Site.Params.footer.license -}}
|
|
|
|
| <span class="license">{{ . | safeHTML }}</span>
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- /* ICP */ -}}
|
|
|
|
{{- with .Site.Params.footer.icp -}}
|
|
|
|
<span class="icp-splitter"> | </span><br class="icp-br"/>
|
|
|
|
<span class="icp">{{ . | safeHTML }}</span>
|
|
|
|
{{- end -}}
|
|
|
|
</div>
|
2019-08-26 19:15:00 +02:00
|
|
|
</div>
|
2020-04-21 16:55:06 +02:00
|
|
|
</footer>
|
|
|
|
{{- end -}}
|