diff options
author | Christoph Cullmann <cullmann@kde.org> | 2021-02-18 22:21:36 +0100 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2021-02-18 22:21:36 +0100 |
commit | 0c7cb4486a89ec6fe9680e6569ef41d4b82d557d (patch) | |
tree | 081941052bcab0caf69487b6bf5ab2df5deb3b7b /themes/CodeIT/layouts/partials/footer.html | |
parent | 640572ecab69291d2c266de2011b795a861e7c21 (diff) |
use maintained theme
Diffstat (limited to 'themes/CodeIT/layouts/partials/footer.html')
-rw-r--r-- | themes/CodeIT/layouts/partials/footer.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/themes/CodeIT/layouts/partials/footer.html b/themes/CodeIT/layouts/partials/footer.html new file mode 100644 index 0000000..05e6fc7 --- /dev/null +++ b/themes/CodeIT/layouts/partials/footer.html @@ -0,0 +1,51 @@ +{{- 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 -}} + + {{- /* Hugo and CodeIT */ -}} + {{- if ne .Site.Params.footer.hugo false -}} + <div class="footer-line"> + {{- $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>` -}} + {{- 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 -}} + <span class="author" itemprop="copyrightHolder"> <a href="{{ $.Site.Author.link | default .Site.Home.RelPermalink }}" target="_blank" rel="noopener noreferrer">{{ .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> + </div> + </footer> +{{- end -}} |