about summary refs log tree commit diff
path: root/layouts/partials
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2022-12-03 19:36:58 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2022-12-03 19:36:58 +0700
commit890252ec5e659b439165e0d18ca991ef1bfad9ee (patch)
tree4e3a82a9ca9ee188b6f0f8941fb797bd8e20c3b2 /layouts/partials
parent00fa316382900709b209fd1bc96caa50b5c95c30 (diff)
downloadvictor-890252ec5e659b439165e0d18ca991ef1bfad9ee.tar.gz
Add basic layout
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/copyright.html0
-rw-r--r--layouts/partials/footer-extra.html0
-rw-r--r--layouts/partials/footer.html24
-rw-r--r--layouts/partials/head.html0
-rw-r--r--layouts/partials/header.html0
5 files changed, 24 insertions, 0 deletions
diff --git a/layouts/partials/copyright.html b/layouts/partials/copyright.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/copyright.html
diff --git a/layouts/partials/footer-extra.html b/layouts/partials/footer-extra.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/footer-extra.html
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>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/head.html
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/header.html