added support for translations, added italian translation

This commit is contained in:
Gabriele Musco 2021-07-07 14:33:45 +02:00
parent 6bb8b3952d
commit 9f0fd3337b
No known key found for this signature in database
GPG key ID: 8539FD3454380B83
16 changed files with 162 additions and 33 deletions

View file

@ -4,7 +4,11 @@
{{ if and (ne $section $title) (ne $section "Tags") (ne $title (printf "%ss" $section)) }}
{{ $section }}:
{{ end }}
{{ if and (eq $section "Tags") (ne $section $title) }}Tag: #{{ end }}{{ $title }}
{{ if and (eq $section "Tags") (eq $section $title) }}
{{ i18n "tagsColumn" }}
{{ else }}
{{ if and (eq $section "Tags") (ne $section $title) }}{{ i18n "tagColumn" }} #{{ end }}{{ $title }}
{{ end }}
</h2>
<ul class="list">
{{ if and (eq $section "Tags") (eq $section $title) }}
@ -19,7 +23,7 @@
<li>
<div>
<span class="date">
{{ .Date.Format "2006-01-02" }}
{{- partial "date.html" .Date -}}
</span>
<span>
<a href="{{ .Permalink }}">{{ .Title }}</a>