theme/layouts/partials/footer.html

61 lines
2.3 KiB
HTML
Raw Normal View History

2019-02-02 16:17:50 +00:00
<footer class="footer">
<div class="container">
<div class="has-text-centered">
<p>
2019-02-06 15:46:07 +00:00
Copyright &copy; {{ now.Year }}
2019-03-24 18:27:50 +00:00
<a href="{{ .Site.Params.website }}">{{ .Site.Params.author }}</a>.
2019-02-06 15:46:07 +00:00
All rights reserved. Made with ♥️ and <a href="https://gohugo.io">Hugo</a>.
{{/* The site urls are hard coded because both sites are located at the same path but the base website url is different on the docs page */}}
<a href="https://vikunja.io/contact/">Contact</a> |
<a href="https://vikunja.io/privacy/">Privacy Policy</a>
2019-02-02 16:17:50 +00:00
</p>
2020-02-18 17:27:42 +00:00
<p>
<a href="https://riot.im/app/#/room/!dCRiCiLaCCFVNlDnYs:matrix.org?via=matrix.org">
<img src="https://img.shields.io/badge/chat-on%20matrix.org-brightgreen" alt="Chat on matrix.org"/>
</a>
</p>
2020-02-18 17:21:37 +00:00
{{/*
Commented out until we actually have a multi-language website.
2019-02-02 16:17:50 +00:00
<p>
{{ $lang := .Lang }}{{ $base := .Site.BaseURL }}{{ range .Site.Languages }}
<a class="nav-link" href="{{ $base }}{{ .Lang }}">{{ .LanguageName }}</a>
{{ end }}
</p>
2020-02-18 17:21:37 +00:00
*/}}
2019-02-02 16:17:50 +00:00
</div>
</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', function () {
// Get all "navbar-burger" elements
var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
// Check if there are any navbar burgers
if ($navbarBurgers.length > 0) {
// Add a click event on each of them
$navbarBurgers.forEach(function ($el) {
$el.addEventListener('click', function () {
// Get the target from the "data-target" attribute
var target = $el.dataset.target;
var $target = document.getElementById(target);
// Toggle the class on both the "navbar-burger" and the "navbar-menu"
$el.classList.toggle('is-active');
2019-10-30 20:50:13 +00:00
$target.classList.toggle('is-active');
2019-02-02 16:17:50 +00:00
document.getElementById('navbar-background').classList.toggle('is-active');
});
});
}
});
</script>
2019-02-06 15:00:16 +00:00
{{ partial "fathom-tracking.html" . }}
2019-02-02 16:17:50 +00:00
</body>
</html>