about summary refs log tree commit diff
path: root/layouts/partials/footer.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r--layouts/partials/footer.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..8707172
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,24 @@
+{{/*
+SPDX-FileCopyrightText: 2022 Ngô Ngọc Đức Huy <huyngo@disroot.org>
+
+SPDX-License-Identifier: MIT
+*/}}
+
+<footer class="common-footer" id="footer">
+  {{ $languagesCount := $.Site.Home.AllTranslations }}
+  {{ if gt $languagesCount 1 }}
+    {{ partial "language-switcher.html" . }}
+  {{ end }}
+
+  <div class="common-footer-bottom">
+    <div class="copyright">
+      <p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}</p>
+      <p>{{ partial "copyright.html" . }}</p>
+    </div> 
+    <div>
+      {{ partial "footer-extra.html" . }}
+    </div>
+  </div>
+
+  {{ partial "h-card.html" . }}
+</footer>