From 080c86ec799b7f2058009159a36aa540705e202e Mon Sep 17 00:00:00 2001 From: Matthias Thym Date: Thu, 26 Aug 2021 18:23:55 +0200 Subject: [PATCH 1/2] feat(i18n): add German and Spanish translations for new features and refactor (#328) * feat(i18n): add German translations for new features and refactor add translation for feature `back` add translation for feature `tableOfContents` add translation for feature `readingTime` fix translation for feature `resultTitle` add newlines according to i18n en config * feat(i18n): add Spanish translations for new features and refactor add translation for feature `back` add translation for feature `tableOfContents` add translation for feature `readingTime` add newlines according to i18n en config --- i18n/de.yaml | 21 +++++++++++++++++++-- i18n/es.yaml | 17 +++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/i18n/de.yaml b/i18n/de.yaml index 25a708a..00a8e11 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -17,23 +17,37 @@ list: other: Unterabschnitte article: + back: + other: Zurück + + tableOfContents: + other: Inhaltsverzeichnis + relatedContents: other: Verwandte Inhalte + lastUpdatedOn: other: Zuletzt aktualisiert am + readingTime: + one: "{{ .Count }} Minute Lesezeit" + other: "{{ .Count }} Minuten Lesezeit" + notFound: title: other: Seite nicht gefunden + subtitle: - other: Diese Seite existiert nicht. + other: Diese Seite existiert nicht widget: archives: title: other: Archiv + more: other: Weitere + tagCloud: title: other: Schlagwörter @@ -41,13 +55,16 @@ widget: search: title: other: Suche + placeholder: other: Etwas tippen... + resultTitle: - other: "#PAGES_COUNT pages (#TIME_SECONDS seconds)" + other: "#PAGES_COUNT Seiten (#TIME_SECONDS Sekunden)" footer: builtWith: other: Erstellt mit {{ .Generator }} + designedBy: other: Theme {{ .Theme }} gestaltet von {{ .DesignedBy }} diff --git a/i18n/es.yaml b/i18n/es.yaml index d82698b..9e1d6e1 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -17,14 +17,26 @@ list: other: Subsecciones article: + back: + other: Volver + + tableOfContents: + other: Tabla de contenido + relatedContents: other: Contenidos relacionados + lastUpdatedOn: other: Última vez actualizado + readingTime: + one: "{{ .Count }} minuto a leer" + other: "{{ .Count }} minutos a leer" + notFound: title: other: No Encontrado + subtitle: other: Esta página no existe @@ -32,8 +44,10 @@ widget: archives: title: other: Archivo + more: other: Más + tagCloud: title: other: Etiquetas @@ -41,13 +55,16 @@ widget: search: title: other: Búsqueda + placeholder: other: Teclea algo... + resultTitle: other: "#PAGES_COUNT páginas en (#TIME_SECONDS segundos)" footer: builtWith: other: Creado con {{ .Generator }} + designedBy: other: Tema {{ .Theme }} diseñado por {{ .DesignedBy }} From 9c7e73646c8d97446add38b39e1aaa0ed8a4da74 Mon Sep 17 00:00:00 2001 From: zhixuan <59254886+zhixuan2333@users.noreply.github.com> Date: Fri, 27 Aug 2021 01:50:03 +0900 Subject: [PATCH 2/2] feat(article): add positional parameter for `video` shortcode (#331) --- layouts/shortcodes/video.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/video.html b/layouts/shortcodes/video.html index 733761a..5324754 100644 --- a/layouts/shortcodes/video.html +++ b/layouts/shortcodes/video.html @@ -1,13 +1,14 @@ +{{- $src := .Get "src" | default (.Get 0) -}}