about summary refs log tree commit diff
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/footer-extra.html12
-rw-r--r--layouts/partials/head-extra.html5
-rw-r--r--layouts/partials/languageSelect.html10
3 files changed, 27 insertions, 0 deletions
diff --git a/layouts/partials/footer-extra.html b/layouts/partials/footer-extra.html
new file mode 100644
index 0000000..bef79ed
--- /dev/null
+++ b/layouts/partials/footer-extra.html
@@ -0,0 +1,12 @@
+<footer>
+	<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
+		<img alt="Creative Commons License" style="border-width:0"
+				      src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" />
+	</a>
+	<br>
+	The content for this site is
+	<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>.
+	<br>
+	The <a href="https://git.sr.ht/~sircmpwn/drewdevault.com">code for this site</a>
+	is <a href="https://opensource.org/licenses/MIT">MIT</a>.
+</footer>
diff --git a/layouts/partials/head-extra.html b/layouts/partials/head-extra.html
new file mode 100644
index 0000000..d0d0022
--- /dev/null
+++ b/layouts/partials/head-extra.html
@@ -0,0 +1,5 @@
+<link rel="stylesheet" href="/css/custom.css">
+<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
+<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
+<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
+<link rel="manifest" href="/images/site.webmanifest">
diff --git a/layouts/partials/languageSelect.html b/layouts/partials/languageSelect.html
new file mode 100644
index 0000000..029a34d
--- /dev/null
+++ b/layouts/partials/languageSelect.html
@@ -0,0 +1,10 @@
+{{ if .IsTranslated }}
+<h4>{{ i18n "translations" }}</h4>
+<ul>
+  {{ range .Translations }}
+  <li>
+    <a href="{{ .Permalink }}">{{ .Language.LanguageName }}: {{ .Title }}{{ if .IsPage }} ({{ i18n "wordCount" . }}){{ end }}</a>
+  </li>
+  {{ end }}
+</ul>
+{{ end }}