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/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/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 }} 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" . }} diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index 119cb01..a453c1c 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 + 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 }} 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" -}}