Skip to content
Permalink
Browse files

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
  • Loading branch information
tobiasehlert authored and luizdepra committed Nov 25, 2019
1 parent b00b750 commit a980192fa7bba786970232aa36bb4ff861573be1
Showing with 27 additions and 2 deletions.
  1. +1 −0 CONTRIBUTORS.md
  2. +24 −0 i18n/se.toml
  3. +2 −2 layouts/partials/home.html
@@ -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)
@@ -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"
@@ -10,13 +10,13 @@ <h2>{{ .Site.Params.info }}</h2>
{{ 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 }}

0 comments on commit a980192

Please sign in to comment.
You can’t perform that action at this time.