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">
|
2020-05-18 10:10:24 +02:00
|
|
|
{{- $hugo := printf `<a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo %v">Hugo</a>` hugo.Version -}}
|
2022-05-06 19:54:31 +02:00
|
|
|
{{- $theme := .Scratch.Get "version" | printf `<a href="https://github.com/dillonzq/LoveIt" target="_blank" rel="noopener noreffer" title="LoveIt %v"><i class="far fa-kiss-wink-heart fa-fw" aria-hidden="true"></i> LoveIt</a>` -}}
|
2020-05-18 10:10:24 +02:00
|
|
|
{{- dict "Hugo" $hugo "Theme" $theme | T "poweredBySome" | safeHTML }}
|
2020-04-21 16:55:06 +02:00
|
|
|
</div>
|
2019-08-26 19:15:00 +02:00
|
|
|
{{- end -}}
|
2020-02-03 11:38:10 +01:00
|
|
|
|
2020-11-24 03:07:31 +01:00
|
|
|
<div class="footer-line" itemscope itemtype="http://schema.org/CreativeWork">
|
2020-04-21 16:55:06 +02:00
|
|
|
{{- /* Copyright year */ -}}
|
|
|
|
{{- if ne .Site.Params.footer.copyright false -}}
|
2022-05-06 19:54:31 +02:00
|
|
|
<i class="far fa-copyright fa-fw" aria-hidden="true"></i>
|
2020-04-21 16:55:06 +02:00
|
|
|
{{- 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 -}}
|
2020-04-22 15:34:38 +02:00
|
|
|
<span class="author" itemprop="copyrightHolder"> <a href="{{ $.Site.Author.link | default .Site.Home.RelPermalink }}" target="_blank">{{ .Site.Author.name }}</a></span>
|
2020-04-21 16:55:06 +02:00
|
|
|
{{- 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 -}}
|