about summary refs log tree commit diff
path: root/layouts
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-04-16 15:56:10 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-04-16 15:56:10 +0700
commit814fb43f2d307296da9f82ae39c7587c1a91961b (patch)
tree160a0efea982f67c0be021796b5ed6226ca8b71b /layouts
parentd0a835511bfacf2ef427666f0d5df3b646b29158 (diff)
downloadblog-814fb43f2d307296da9f82ae39c7587c1a91961b.tar.gz
Override local files instead of submodule
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/footer.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..5db94ac
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,29 @@
+<footer class="common-footer">
+    {{ $languagesCount := $.Site.Home.AllTranslations }}
+    {{ if gt $languagesCount 1 }}
+        {{ partial "languageSelect.html" . }}
+    {{ end }}
+
+    <div class="common-footer-bottom">
+        {{ if .Site.Menus.footer }}
+            {{ $currentPage := . }}
+            <ul class="footer-menu">
+            {{ range .Site.Menus.footer }}
+            <li><a class="{{if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a></li>
+            {{ end }}
+            </ul>
+        {{ end }}
+        <div class="copyright">
+            <p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}<br>
+            {{ i18n "powered" | humanize }} <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, {{ i18n "theme" }} <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.<br>
+            {{ partial "copyright.html" . }}
+            </p>  
+        </div> 
+        <div>
+            {{ partial "themeSwitcher.html" . }}   
+            {{ partial "footer-extra.html" . }}
+        </div>
+    </div>
+
+    {{ partial "h-card.html" . }}
+</footer>