From 3ec95503252645b87c625df10a8ac44d04563166 Mon Sep 17 00:00:00 2001 From: "C. Lente" <7017340+clente@users.noreply.github.com> Date: Wed, 1 Feb 2023 15:06:05 -0300 Subject: Bring files from personal blog --- layouts/partials/footer.html | 6 +++++- layouts/partials/header.html | 2 +- layouts/partials/nav.html | 20 ++++++++++++++------ layouts/partials/style.html | 4 ++++ 4 files changed, 24 insertions(+), 8 deletions(-) (limited to 'layouts/partials') 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 Hugo ʕ•ᴥ•ʔ Bear{{ end }} +{{ if ne .Site.Params.hideMadeWithLine true }} + + {{ .Site.Copyright }} | {{ i18n "stone" }} + +{{ 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 @@ - +

{{ .Site.Title }}

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 @@ -Home -{{ range .Site.Menus.main }} -{{ .Name }} -{{ end }} -{{ with .Site.GetPage "/blog" }} -Blog +Home +Blog +Email +RSS + +{{ $pageLang := .Page.Lang }} +{{ if .IsTranslated }} + {{ range .Translations }} + {{ if ne $pageLang .Lang }} + {{ i18n "other-lang" }} + {{ end }} + {{ end }} +{{ else }} + {{ i18n "other-lang" }} {{ 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; -- cgit v1.2.3