Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/luizdepra/hugo-coder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Lindberg <tobias.ehlert@gmail.com>2019-11-25 16:52:26 +0300
committerLuiz F. A. de Prá <luizdepra@users.noreply.github.com>2019-11-25 16:52:26 +0300
commita980192fa7bba786970232aa36bb4ff861573be1 (patch)
tree19d74b9b0d5bc1e58236cdc5ec1b8aeb84a9e212
parentb00b75064d67953db2f32fee676360477026d97f (diff)
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
-rw-r--r--CONTRIBUTORS.md1
-rw-r--r--i18n/se.toml24
-rw-r--r--layouts/partials/home.html4
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 }}