From c123fc189929429164bf7268a9e7d5974884499f Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Mon, 6 Jan 2025 05:22:56 +0100 Subject: more translations --- layouts/_default/_markup/render-heading.html | 2 +- layouts/_default/single.html | 2 +- layouts/partials/author_card.html | 24 +++++++++++-------- layouts/partials/header.html | 19 +++++++-------- layouts/partials/hero.html | 16 ++++++------- layouts/partials/leading_image.html | 6 ++--- layouts/partials/meta_links.html | 5 ++-- layouts/partials/pagination.html | 35 +++++++++++++++++++++------- layouts/partials/post.html | 4 ++-- layouts/partials/post_pager.html | 26 ++++++++++++++------- layouts/partials/social_links.html | 3 +-- layouts/taxonomy/terms.html | 2 +- 12 files changed, 86 insertions(+), 58 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html index 3ebfeb6..7d1e0ac 100644 --- a/layouts/_default/_markup/render-heading.html +++ b/layouts/_default/_markup/render-heading.html @@ -1,7 +1,7 @@ {{ .Text | safeHTML }} - + diff --git a/layouts/_default/single.html b/layouts/_default/single.html index bdb5482..7c95390 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -23,7 +23,7 @@ {{ if .Site.Params.tipping }} {{ partial "tipping" . }} {{ end }} -
+
{{ if in (slice "post" "talk") .Section }} {{ range .Params.authors }} {{ $name := . }} diff --git a/layouts/partials/author_card.html b/layouts/partials/author_card.html index 83f59d7..b23c3e7 100644 --- a/layouts/partials/author_card.html +++ b/layouts/partials/author_card.html @@ -1,18 +1,22 @@ -
-
- {{ .name }} -
-
-
- +
+ {{ .name }} +
+
+ {{ .name }}
-
{{ .role | markdownify }}
-

+

{{ .role | markdownify }}
+

{{ .bio }}

-
+
{{ partial "social_links" . }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index b18f748..394f274 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,7 +1,6 @@ -
{{ with .Params.Subtitle }} -

+

{{ . | markdownify }} -

+ {{ end }} @@ -40,7 +40,7 @@
{{ else }} -

{{ .Title }}

+

{{ .Title }}

{{ .Content }} {{ end }}
diff --git a/layouts/partials/leading_image.html b/layouts/partials/leading_image.html index 0dda603..2f8e491 100644 --- a/layouts/partials/leading_image.html +++ b/layouts/partials/leading_image.html @@ -5,8 +5,8 @@ {{ $image = resources.Get (index .Params.images 0) }} {{ end }} {{ with $image }} -
-
+
+
{{ .text }} diff --git a/layouts/partials/meta_links.html b/layouts/partials/meta_links.html index 3ee7c7c..69e2a94 100644 --- a/layouts/partials/meta_links.html +++ b/layouts/partials/meta_links.html @@ -1,8 +1,8 @@ {{ with .Params.meta_links }} -
+
{{ range $key, $val := . }} {{ end }} -
{{ end }} diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index 6fdb89b..7e5eeb3 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -1,17 +1,34 @@ {{ $pag := $.Paginator }} {{ if gt $pag.TotalPages 1 }} - {{ end }} diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 8afa03e..2e99a7a 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -14,9 +14,9 @@ {{ if ne .MediaType.SubType "svg" }} {{ $image := .Fill (default "150x150" $.Params.thumbnail_size) }} width="{{ $image.Width }}" height="{{ $image.Height }}" - src="{{ $image.RelPermalink }}" + src="{{ $image.RelPermalink }}" class="mx-auto" {{ else }} - src="{{ $image.RelPermalink }}" + src="{{ $image.RelPermalink }}" class="mx-auto max-w-64" {{ end }} loading="lazy" alt="" diff --git a/layouts/partials/post_pager.html b/layouts/partials/post_pager.html index fdb5c44..350f347 100644 --- a/layouts/partials/post_pager.html +++ b/layouts/partials/post_pager.html @@ -1,10 +1,20 @@ diff --git a/layouts/partials/social_links.html b/layouts/partials/social_links.html index c7a5f7d..0951770 100644 --- a/layouts/partials/social_links.html +++ b/layouts/partials/social_links.html @@ -15,8 +15,7 @@ - + {{ end }} diff --git a/layouts/taxonomy/terms.html b/layouts/taxonomy/terms.html index 391d941..7f7cef9 100644 --- a/layouts/taxonomy/terms.html +++ b/layouts/taxonomy/terms.html @@ -7,7 +7,7 @@
{{ range .Data.Terms.ByCount }} -- cgit v1.2.3