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/_default/baseof.html | 5 +++--
layouts/_default/list.html | 28 +++++++++++++++-------------
layouts/_default/single.html | 6 +++---
layouts/i18n/en.toml | 26 ++++++++++++++++++++++++++
layouts/i18n/pt.toml | 26 ++++++++++++++++++++++++++
layouts/partials/footer.html | 6 +++++-
layouts/partials/header.html | 2 +-
layouts/partials/nav.html | 20 ++++++++++++++------
layouts/partials/style.html | 4 ++++
layouts/robots.txt | 3 ++-
layouts/shortcodes/rawhtml.html | 2 ++
11 files changed, 101 insertions(+), 27 deletions(-)
create mode 100644 layouts/i18n/en.toml
create mode 100644 layouts/i18n/pt.toml
create mode 100644 layouts/shortcodes/rawhtml.html
(limited to 'layouts')
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 6bce2dc..1f30b5d 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -11,12 +11,13 @@
{{- partial "seo_tags.html" . -}}
+ {{ $css := resources.Get "style.css" | minify }}
+
+
{{ with .OutputFormats.Get "rss" -}}
{{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
- {{- partial "style.html" . -}}
-
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 8b8c14b..6c4f7d0 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,10 +1,10 @@
{{ define "main" }}
Filtering for "{{ .Title }}"
-
- Remove filter
-
+ {{ i18n "filter" }} "{{ .Title }}"
+
+ {{ i18n "remove" }}
+
{{ end }}
{{ range .Pages }}
@@ -16,7 +16,11 @@
- {{ .Title }}
+ {{ if .Params.link }}
+ {{ .Title }}
+ {{ else }}
+ {{ .Title }}
+ {{ end }}
{{ else }}
{{ if .Data.Singular }}
{{else}}
-
-
@@ -8,13 +8,13 @@
-{{ end }}{{ end }} +{{ end }}{{ range (.GetTerms "tags") }} - #{{ .LinkTitle }} + #{{ .LinkTitle }} {{ end }}
{{ end }} diff --git a/layouts/i18n/en.toml b/layouts/i18n/en.toml new file mode 100644 index 0000000..708eb64 --- /dev/null +++ b/layouts/i18n/en.toml @@ -0,0 +1,26 @@ +[home] + other = '/en' + +[posts] + other = '/en/posts' + +[other-lang] + other = "Português 🇧🇷" + +[other-home] + other = "/" + +[reply] + other = 'Reply to ' + +[filter] + other = 'Filtering for' + +[remove] + other = 'Remove filter' + +[stone] + other = 'Made of stone' + +[stone-link] + other = '/en/posts/stone-websites' \ No newline at end of file diff --git a/layouts/i18n/pt.toml b/layouts/i18n/pt.toml new file mode 100644 index 0000000..d2f2548 --- /dev/null +++ b/layouts/i18n/pt.toml @@ -0,0 +1,26 @@ +[home] + other = '/' + +[posts] + other = '/posts' + +[other-lang] + other = "English 🇺🇸" + +[other-home] + other = "/en" + +[reply] + other = 'Resposta a ' + +[filter] + other = 'Filtrando para' + +[remove] + other = 'Remover filtro' + +[stone] + other = 'Feito de pedra' + +[stone-link] + other = '/posts/sites-de-pedra' \ No newline at end of file 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 @@ - +