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,11 +4,11 @@
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h2>
<p class="date">
<span title="Date"></span>
{{ .Date.Format "2006-01-02" }}
<span title='{{ i18n "date" }}'></span>
{{- partial "date.html" .Date -}}
{{ if and (site.Params.tagsInArticlePreview | default true) .Params.tags }}
| <!-- Pipe character as visual separator between date and tags-->
<span title="Tags"></span>
<span title='{{ i18n "tags" }}'></span>
{{ range sort .Params.tags }}
<a href="/tags/{{ . | urlize }}">#{{ . }}</a>
{{ end }}
@ -22,7 +22,7 @@
{{ if (site.Params.articleSummary | default true) }}
<div class="articlePreview">
<p>{{ .Summary }}</p>
<p><a href="{{ .Permalink }}">Continue reading</a></p>
<p><a href="{{ .Permalink }}">{{ i18n "continueReading" }}</a></p>
</div>
{{ end }}
</div>