2021-02-18 21:44:01 +01: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>
|
|
|
|
{{- end -}}
|
|
|
|
|
2021-02-18 22:21:36 +01:00
|
|
|
{{- /* Hugo and CodeIT */ -}}
|
2021-02-18 21:44:01 +01:00
|
|
|
{{- if ne .Site.Params.footer.hugo false -}}
|
|
|
|
<div class="footer-line">
|
2021-02-18 22:21:36 +01:00
|
|
|
{{- $hugo := printf `<a href="https://gohugo.io/" target="_blank" rel="noopener noreferrer" title="Hugo %v">Hugo</a>` hugo.Version -}}
|
|
|
|
{{- $theme := .Scratch.Get "version" | printf `<a href="https://github.com/sunt-programator/CodeIT" target="_blank" rel="noopener noreferrer" title="CodeIT %v"><i class="fas fa-laptop-code fa-fw"></i> CodeIT</a>` -}}
|
2021-02-18 21:44:01 +01:00
|
|
|
{{- dict "Hugo" $hugo "Theme" $theme | T "poweredBySome" | safeHTML }}
|
|
|
|
</div>
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
<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 -}}
|
|
|
|
|
|
|
|
{{- /* Author */ -}}
|
|
|
|
{{- if ne .Site.Params.footer.author false -}}
|
2021-02-18 22:21:36 +01:00
|
|
|
<span class="author" itemprop="copyrightHolder"> <a href="{{ $.Site.Author.link | default .Site.Home.RelPermalink }}" target="_blank" rel="noopener noreferrer">{{ .Site.Author.name }}</a></span>
|
2021-02-18 21:44:01 +01: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>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
{{- end -}}
|