diff options
author | Christoph Cullmann <cullmann@kde.org> | 2022-08-14 19:01:21 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2022-08-14 19:01:21 +0200 |
commit | 51fb029ca27d67d7cd67352cdede45e5b25868f7 (patch) | |
tree | 6d8e34b2abdc757310ffe11189e926d017417bae /themes/LoveIt/layouts/partials/footer.html | |
parent | 260b6803e78609e16ad3d59792f1681d9df0f1e4 (diff) |
switch back to LoveIt, other theme is deprectated
Diffstat (limited to 'themes/LoveIt/layouts/partials/footer.html')
-rw-r--r-- | themes/LoveIt/layouts/partials/footer.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/themes/LoveIt/layouts/partials/footer.html b/themes/LoveIt/layouts/partials/footer.html new file mode 100644 index 0000000..f21a197 --- /dev/null +++ b/themes/LoveIt/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 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 %v">Hugo</a>` hugo.Version -}} + {{- $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>` -}} + {{- dict "Hugo" $hugo "Theme" $theme | T "poweredBySome" | safeHTML }} + </div> + {{- end -}} + + <div class="footer-line" itemscope itemtype="http://schema.org/CreativeWork"> + {{- /* Copyright year */ -}} + {{- if ne .Site.Params.footer.copyright false -}} + <i class="far fa-copyright fa-fw" aria-hidden="true"></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">{{ .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 -}} |