Merge branch 'master' into master

This commit is contained in:
Jimmy Cai 2022-10-29 14:19:23 +02:00 committed by GitHub
commit 7fdf517c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 84 additions and 4 deletions

View File

@ -3,10 +3,12 @@
margin-right: auto; margin-right: auto;
.left-sidebar { .left-sidebar {
order: -3;
max-width: var(--left-sidebar-max-width); max-width: var(--left-sidebar-max-width);
} }
.right-sidebar { .right-sidebar {
order: -1;
max-width: var(--right-sidebar-max-width); max-width: var(--right-sidebar-max-width);
/// Display right sidebar when min-width: lg /// Display right sidebar when min-width: lg
@ -73,6 +75,7 @@
} }
main.main { main.main {
order: -2;
min-width: 0; min-width: 0;
max-width: 100%; max-width: 100%;
flex-grow: 1; flex-grow: 1;

View File

@ -8,15 +8,18 @@ languages:
en: en:
languageName: English languageName: English
title: Example Site title: Example Site
description: Example description
weight: 1 weight: 1
zh-cn: zh-cn:
languageName: 中文 languageName: 中文
title: 演示站点 title: 演示站点
description: 演示说明
weight: 2 weight: 2
ar: ar:
languageName: عربي languageName: عربي
languagedirection: rtl languagedirection: rtl
title: موقع تجريبي title: موقع تجريبي
description: وصف تجريبي
weight: 3 weight: 3
# Change it to your Disqus shortname before using # Change it to your Disqus shortname before using

67
i18n/pt-pt.yaml Normal file
View File

@ -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 }}

View File

@ -18,10 +18,10 @@
{{- block "left-sidebar" . -}} {{- block "left-sidebar" . -}}
{{ partial "sidebar/left.html" . }} {{ partial "sidebar/left.html" . }}
{{- end -}} {{- end -}}
{{- block "right-sidebar" . -}}{{ end }}
<main class="main full-width"> <main class="main full-width">
{{- block "main" . }}{{- end }} {{- block "main" . }}{{- end }}
</main> </main>
{{- block "right-sidebar" . -}}{{ end }}
</div> </div>
{{ partial "footer/include.html" . }} {{ partial "footer/include.html" . }}
</body> </body>

View File

@ -34,7 +34,7 @@
</div> </div>
{{ end }} {{ end }}
{{ if .Site.Params.article.readingTime }} {{ if (.Params.readingTime | default (.Site.Params.article.readingTime)) }}
<div> <div>
{{ partial "helper/icon" "clock" }} {{ partial "helper/icon" "clock" }}
<time class="article-time--reading"> <time class="article-time--reading">
@ -55,4 +55,4 @@
</div> </div>
</footer> </footer>
{{ end }} {{ end }}
</div> </div>

View File

@ -1,6 +1,11 @@
<!-- Use site subtitle by default --> <!-- Use site subtitle by default -->
{{ $description := .Site.Params.sidebar.subtitle }} {{ $description := .Site.Params.sidebar.subtitle }}
<!-- Seprate description exists -->
{{ if .Site.Params.description }}
{{ $description = .Site.Params.description }}
{{ end }}
{{ if .Description }} {{ if .Description }}
<!-- Page description exists --> <!-- Page description exists -->
{{ $description = .Description }} {{ $description = .Description }}

View File

@ -1,4 +1,4 @@
{{- $ThemeVersion := "3.14.0" -}} {{- $ThemeVersion := "3.15.0" -}}
<footer class="site-footer"> <footer class="site-footer">
<section class="copyright"> <section class="copyright">
&copy; &copy;

View File

@ -3,6 +3,7 @@
{{- $description := partialCached "data/description" . .RelPermalink -}} {{- $description := partialCached "data/description" . .RelPermalink -}}
<meta name='description' content='{{ $description }}'> <meta name='description' content='{{ $description }}'>
{{ with .Params.Keywords }}<meta name="keywords" content="{{ delimit . ", " }}">{{ end }}
{{- $title := partialCached "data/title" . .RelPermalink -}} {{- $title := partialCached "data/title" . .RelPermalink -}}
<title>{{ $title }}</title> <title>{{ $title }}</title>

View File

@ -45,6 +45,7 @@
href='{{ .URL }}' href='{{ .URL }}'
{{ if eq (default true .Params.newTab) true }}target="_blank"{{ end }} {{ if eq (default true .Params.newTab) true }}target="_blank"{{ end }}
{{ with .Name }}title="{{ . }}"{{ end }} {{ with .Name }}title="{{ . }}"{{ end }}
rel="me"
> >
{{ $icon := default "link" .Params.Icon }} {{ $icon := default "link" .Params.Icon }}
{{ with $icon }} {{ with $icon }}