From a980192fa7bba786970232aa36bb4ff861573be1 Mon Sep 17 00:00:00 2001 From: Tobias Lindberg Date: Mon, 25 Nov 2019 14:52:26 +0100 Subject: [PATCH] adding swedish i18n file and adding target for social icons (#238) * Adding target if statements * adding Tobias Lindberg to CONTRIBUTORS.md * adding swedish language i18n file --- CONTRIBUTORS.md | 1 + i18n/se.toml | 24 ++++++++++++++++++++++++ layouts/partials/home.html | 4 ++-- 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 i18n/se.toml diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index bab849f..de47216 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -49,3 +49,4 @@ - [Bobby Lindsey](https://bobbywlindsey.com) - [José Mª Escartín](https://github.com/jme52) - [John Schroeder](https://blog.schroedernet.software) +- [Tobias Lindberg](https://tobiaslindberg.com) diff --git a/i18n/se.toml b/i18n/se.toml new file mode 100644 index 0000000..e244c13 --- /dev/null +++ b/i18n/se.toml @@ -0,0 +1,24 @@ +[category] +other = "Kategori" + +[tag] +other = "Tagg" + +[series] +other = "Serie" + +[reading_time] +one = "Ein minut lästid" +other = "{{ .Count }} minuter lästid" + +[page_not_found] +other = "Sida hittades inte" + +[page_does_not_exist] +other = "Ursäkta, men denna sida existerar inte." + +[head_back] +other = "Här kan du komma tillbaka till startsidan." + +[powered_by] +other = "Med hjälp av" diff --git a/layouts/partials/home.html b/layouts/partials/home.html index 5b9ecd7..91a832a 100644 --- a/layouts/partials/home.html +++ b/layouts/partials/home.html @@ -10,13 +10,13 @@ {{ range sort .}} {{ if .icon }}
  • - +
  • {{ else }}
  • - {{ .name }} + {{ .name }}
  • {{ end }} {{ end }}