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/2] 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/2] 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" . }}