aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorC. Lente <7017340+clente@users.noreply.github.com>2023-02-01 15:06:05 -0300
committerC. Lente <7017340+clente@users.noreply.github.com>2023-02-01 15:06:05 -0300
commit3ec95503252645b87c625df10a8ac44d04563166 (patch)
tree0304691be8b7859d7e5b525807d6c0e082873553 /layouts/partials
parent76ca2f889f35035484482bf7f9715149a5b40127 (diff)
downloadhugo-bearcub-3ec95503252645b87c625df10a8ac44d04563166.tar.gz
hugo-bearcub-3ec95503252645b87c625df10a8ac44d04563166.tar.bz2
Bring files from personal blog
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/footer.html6
-rw-r--r--layouts/partials/header.html2
-rw-r--r--layouts/partials/nav.html20
-rw-r--r--layouts/partials/style.html4
4 files changed, 24 insertions, 8 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 8eca955..83a3214 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1 +1,5 @@
-{{ if ne .Site.Params.hideMadeWithLine true }}Made with <a href="https://github.com/janraasch/hugo-bearblog/">Hugo ʕ•ᴥ•ʔ Bear</a>{{ end }}
+{{ if ne .Site.Params.hideMadeWithLine true }}
+ <small>
+ {{ .Site.Copyright }} | <a href="{{ i18n "stone-link" }}">{{ i18n "stone" }}</a>
+ </small>
+{{ end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index e47df70..ba8e9ec 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,4 +1,4 @@
-<a href="{{ "/" | relURL }}" class="title">
+<a href="{{ i18n "home" | relURL }}" class="title">
<h2>{{ .Site.Title }}</h2>
</a>
<nav>{{- partial "nav.html" . -}}</nav>
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index def9b6e..951e433 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,7 +1,15 @@
-<a href="{{ "/" | relURL }}">Home</a>
-{{ range .Site.Menus.main }}
-<a href="{{ .URL }}">{{ .Name }}</a>
-{{ end }}
-{{ with .Site.GetPage "/blog" }}
-<a href="{{ "/blog" | relURL }}">Blog</a>
+<a href={{ i18n "home" | relURL }}>Home</a>
+<a href={{ i18n "posts" }}>Blog</a>
+<a href="mailto:c@lente.dev?subject={{ i18n "reply" }}'{{ .Page.Title | default .Site.Title }}'">Email</a>
+<a href="/index.xml">RSS</a>
+
+{{ $pageLang := .Page.Lang }}
+{{ if .IsTranslated }}
+ {{ range .Translations }}
+ {{ if ne $pageLang .Lang }}
+ <a href="{{ .Permalink }}">{{ i18n "other-lang" }}</a>
+ {{ end }}
+ {{ end }}
+{{ else }}
+ <a class="disabled" href="">{{ i18n "other-lang" }}</a>
{{ end }}
diff --git a/layouts/partials/style.html b/layouts/partials/style.html
index 122a641..6ac5bc7 100644
--- a/layouts/partials/style.html
+++ b/layouts/partials/style.html
@@ -126,6 +126,10 @@
color: #8b6fcb;
}
+ h3.blog-filter {
+ margin-bottom: 0;
+ }
+
@media (prefers-color-scheme: dark) {
body {
background-color: #333;