added support for translations, added italian translation
This commit is contained in:
parent
6bb8b3952d
commit
9f0fd3337b
16 changed files with 162 additions and 33 deletions
|
|
@ -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>
|
||||
`;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue