diff --git a/i18n/en.toml b/i18n/en.toml index b9cb7125..dac18038 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -55,6 +55,9 @@ other = "Go Home..." [lastUpdated] other = "Last updated" +[languages] +other = "Languages" + [leaveAComment] other = "Leave a comment" @@ -151,5 +154,8 @@ other = "Tags" [toggleSidebar] other = "Toggle Sidebar" +[translations] +other = "Translations" + [website] other = "Website" diff --git a/i18n/fr.toml b/i18n/fr.toml index ec22e0b9..c81af916 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -52,6 +52,9 @@ other = "Gopher" [goHome] other = "Retourner à l'accueil..." +[languages] +other = "Langues" + [leaveAComment] other = "Laisser un commentaire" @@ -148,5 +151,8 @@ other = "Étiquettes" [toggleSidebar] other = "Déplier la barre latérale" +[translations] +other = "Traductions" + [website] other = "Site web" diff --git a/layouts/partials/entry/meta.html b/layouts/partials/entry/meta.html index 8f6aa2ec..4d7fff76 100644 --- a/layouts/partials/entry/meta.html +++ b/layouts/partials/entry/meta.html @@ -13,5 +13,6 @@ {{ partial "entry/meta/posted-on" . }} {{ partial "entry/meta/author" . }} {{ partial "entry/meta/reading-time" . }} + {{ partial "entry/meta/translations" . }} {{ end }} diff --git a/layouts/partials/entry/meta/translations.html b/layouts/partials/entry/meta/translations.html new file mode 100644 index 00000000..6a51967a --- /dev/null +++ b/layouts/partials/entry/meta/translations.html @@ -0,0 +1,7 @@ +{{- partial "svg/icons" "translations" -}} +{{ if .IsTranslated }} + {{ i18n "translations" }} + {{ range .Translations }} + {{ .Lang }} + {{ end }} +{{ end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 1f43eb90..b18e30ae 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -31,6 +31,7 @@
{{ .Site.Params.info.description }}
+ {{- partial "header/extra" . -}}