From 299b80c5f8c1067a6c4fb8609b88eb0438ecbabf Mon Sep 17 00:00:00 2001 From: Celso Miranda <769237+celsomiranda@users.noreply.github.com> Date: Fri, 21 Oct 2022 11:56:00 +0100 Subject: [PATCH 1/8] feat(i18n): add european portuguese translation (#699) Very subtle changes from the Brazilian Portuguese translation --- i18n/pt-pt.yaml | 67 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 i18n/pt-pt.yaml diff --git a/i18n/pt-pt.yaml b/i18n/pt-pt.yaml new file mode 100644 index 0000000..f524969 --- /dev/null +++ b/i18n/pt-pt.yaml @@ -0,0 +1,67 @@ +toggleMenu: + other: Alternar Menu + +darkMode: + other: Modo Escuro + +list: + page: + one: "{{ .Count }} página" + other: "{{ .Count }} páginas" + + section: + other: Secção + + subsection: + one: Subsecção + other: Subsecções + +article: + back: + other: Voltar + + tableOfContents: + other: Índice + + relatedContent: + other: Conteúdo relacionado + + lastUpdatedOn: + other: Última atualização a + + readingTime: + one: "{{ .Count }} minuto de leitura" + other: "{{ .Count }} minutos de leitura" + +notFound: + title: + other: Não Encontrado + subtitle: + other: Esta página não existe. + +widget: + archives: + title: + other: Arquivos + more: + other: Mais + tagCloud: + title: + other: Tags + categoriesCloud: + title: + other: Categorias + +search: + title: + other: Pesquisa + placeholder: + other: Escreva algo... + resultTitle: + other: "#PAGES_COUNT páginas (#TIME_SECONDS segundos)" + +footer: + builtWith: + other: Criado com {{ .Generator }} + designedBy: + other: Tema {{ .Theme }} desenvolvido por {{ .DesignedBy }} From ae497c478924fb454783b3953d3ff09188ccdfcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E3=81=AE=E5=85=89?= <80254980+Akimitsu333@users.noreply.github.com> Date: Fri, 21 Oct 2022 19:06:06 +0800 Subject: [PATCH 2/8] refactor(grid): avoid sidebar layout shift when main content loads slowly (#677) Co-authored-by: Luguoba <80254980+luguoba@users.noreply.github.com> --- assets/scss/grid.scss | 3 +++ layouts/_default/baseof.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/scss/grid.scss b/assets/scss/grid.scss index 84967ef..9284da9 100644 --- a/assets/scss/grid.scss +++ b/assets/scss/grid.scss @@ -3,10 +3,12 @@ margin-right: auto; .left-sidebar { + order: -3; max-width: var(--left-sidebar-max-width); } .right-sidebar { + order: -1; max-width: var(--right-sidebar-max-width); /// Display right sidebar when min-width: lg @@ -73,6 +75,7 @@ } main.main { + order: -2; min-width: 0; max-width: 100%; flex-grow: 1; diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 081277b..83fdaa3 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -18,10 +18,10 @@ {{- block "left-sidebar" . -}} {{ partial "sidebar/left.html" . }} {{- end -}} + {{- block "right-sidebar" . -}}{{ end }}
{{- block "main" . }}{{- end }}
- {{- block "right-sidebar" . -}}{{ end }} {{ partial "footer/include.html" . }} From 30fdd000f9de7ccf55490fb553d1c4519acbfac4 Mon Sep 17 00:00:00 2001 From: Ahmad Helaly <58439278+escalopa@users.noreply.github.com> Date: Sat, 22 Oct 2022 12:48:00 +0300 Subject: [PATCH 3/8] feat(article): add `readingTime` front matter field to overwrite global configuration (#701) * add DisableReadTime for articles * change frontmatter disableReadingTime to readingTime --- layouts/partials/article/components/details.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index 4cd26e3..eed3aef 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -34,7 +34,7 @@ {{ end }} - {{ if .Site.Params.article.readingTime }} + {{ if (.Params.readingTime | default (.Site.Params.article.readingTime)) }}
{{ partial "helper/icon" "clock" }}
{{ end }} - \ No newline at end of file + From 70f431ea1803b2bf6daa8e964064bb8ecc9fa70a Mon Sep 17 00:00:00 2001 From: FarisZR <35614734+FarisZR@users.noreply.github.com> Date: Sat, 22 Oct 2022 12:56:38 +0300 Subject: [PATCH 4/8] feat: add a separate configuration field for site description (#672) * Add an optional site description option * Add site description to the example site (Chinese Auto-translated) --- exampleSite/config.yaml | 3 +++ layouts/partials/data/description.html | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index f723d96..c1b48dd 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -8,15 +8,18 @@ languages: en: languageName: English title: Example Site + description: Example description weight: 1 zh-cn: languageName: 中文 title: 演示站点 + description: 演示说明 weight: 2 ar: languageName: عربي languagedirection: rtl title: موقع تجريبي + description: وصف تجريبي weight: 3 # Change it to your Disqus shortname before using diff --git a/layouts/partials/data/description.html b/layouts/partials/data/description.html index f63d603..4f54e5c 100644 --- a/layouts/partials/data/description.html +++ b/layouts/partials/data/description.html @@ -1,6 +1,11 @@ {{ $description := .Site.Params.sidebar.subtitle }} + +{{ if .Site.Params.description }} + {{ $description = .Site.Params.description }} +{{ end }} + {{ if .Description }} {{ $description = .Description }} From 9b464bd9fc23c0cc3d36ba9cd7dbebcfda89739a Mon Sep 17 00:00:00 2001 From: gursi26 <75204369+gursi26@users.noreply.github.com> Date: Sat, 22 Oct 2022 06:13:24 -0400 Subject: [PATCH 5/8] feat(page): add `keywords` front matter field for better SEO (#664) * added keywords metadata tag for google SEO * fix: avoid empty keywords meta tag Co-authored-by: Jimmy Cai --- layouts/partials/head/head.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html index 4d89b89..be63710 100644 --- a/layouts/partials/head/head.html +++ b/layouts/partials/head/head.html @@ -3,6 +3,7 @@ {{- $description := partialCached "data/description" . .RelPermalink -}} +{{ with .Params.Keywords }}{{ end }} {{- $title := partialCached "data/title" . .RelPermalink -}} {{ $title }} From 73437f24eab862e71f087d6835a543882ce99296 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 22 Oct 2022 10:17:46 +0000 Subject: [PATCH 6/8] release: 3.15.0 --- layouts/partials/footer/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index 13d65ae..417018b 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,4 +1,4 @@ -{{- $ThemeVersion := "3.14.0" -}} +{{- $ThemeVersion := "3.15.0" -}}