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

@ -25,7 +25,7 @@
));
if (articles.length > 0) renderArticles(articles);
else document.getElementById('postlist').innerHTML = `
<h3>No results found</h3>
<h3>{{ i18n "noResultsFound" | safeJS }}</h3>
`;
});
}

View file

@ -4,8 +4,8 @@
<h1>{{ .Title }}</h1>
{{ if (.Params.showDate | default true) }}
<p class="date">
<span title="Date"></span>
{{ .Date.Format "2006-01-02" }}
<span title='{{ i18n "date" }}'></span>
{{- partial "date.html" .Date -}}
</p>
{{ end }}
{{ if .Params.Image }}
@ -17,7 +17,7 @@
{{ if not .Site.Params.discreteCards }}<hr />{{ end }}
<p class="articleTagsContainer">
<span></span>
<strong>Tags:</strong>
<strong>{{ i18n "tagsColumn" }}</strong>
{{ range sort .Params.tags }}
<a
{{ if site.Params.discreteTags | default false }}