From a980192fa7bba786970232aa36bb4ff861573be1 Mon Sep 17 00:00:00 2001
From: Tobias Lindberg <tobias.ehlert@gmail.com>
Date: Mon, 25 Nov 2019 13:52:26 +0000
Subject: [PATCH] adding swedish i18n file and adding target for social icons (#238)
---
i18n/se.toml | 24 ++++++++++++++++++++++++
layouts/partials/home.html | 4 ++--
CONTRIBUTORS.md | 1 +
3 files changed, 27 insertions(+), 2 deletions(-)
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 <a href=\"{{ . }}\">startsidan</a>."
+
+[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 }}
<li>
- <a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }}>
+ <a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }}>
<i class="{{ .icon }}" aria-hidden="true"></i>
</a>
</li>
{{ else }}
<li>
- <a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }}>{{ .name }}</a>
+ <a href="{{ .url }}" aria-label="{{ .name }}" {{ if .rel }}rel="{{ .rel }}"{{ end }} {{ if .target }}target="{{ .target }}"{{ end }}>{{ .name }}</a>
</li>
{{ end }}
{{ end }}
--
Gitblit v1.10.0