hugo-theme-fha/layouts/partials/footer.html

42 lines
1.3 KiB
HTML
Raw Permalink Normal View History

2024-09-01 14:27:23 +00:00
<div class="container-xxl">
<footer>
<nav class="navbar fixed-bottom navbar-expand-lg bg-dark mt-auto py-3">
<div class="text-muted container-xl">Last Update : {{ dateFormat "2006-01-02 15:04 MST" now.Local }}</div>
</nav>
</footer>
</div>
{{ partialCached "bootstrap-js.html" . }}
{{ if (findRE "<code" .Content 1) }} {{ $jsCopy :=resources.Get "copycode.js" | minify }}
<script src="{{ $jsCopy.RelPermalink }}"></script>
{{ end }}
{{ if site.Params.search }}
{{ $searchJs := resources.Get "search.js"
| resources.ExecuteAsTemplate "search.js" .
| fingerprint
}}
<script src="{{ $searchJs.RelPermalink }}"></script>
<script>
$(document).ready(function () {
// Show the Modal on load
$("#searchBtn").click(function () {
$("#searchModal").modal("show");
});
// Hide the Modal
$("#hideBtn").click(function () {
$("#searchModal").modal("hide");
});
// Show the Modal on pressing enter
$("#search").keypress(function (event) {
var keycode = (event.keyCode ? event.keyCode : event.which);
if (keycode == '13') {
$("#searchBtn").click();
event.preventDefault();
}
});
});
</script>
{{ end }}
{{ partial "google-analytics-async.html" . }}