Adds translations for static texts

This commit is contained in:
Pierre Bourgeois
2023-02-05 20:09:51 +01:00
parent 6930cf2da2
commit aae2408ef7
6 changed files with 26 additions and 13 deletions
+2 -2
View File
@@ -31,8 +31,8 @@
</div>
</div>
<div class="mt-auto post-footer bg-transparent py-3">
<span class="float-start bg-transparent">{{ .Date.Format "January 2, 2006" }}</span>
<a href="{{ .RelPermalink }}" class="float-end btn btn-outline-info btn-sm">Read</a>
<span class="float-start bg-transparent">{{ .Date.Format (.Site.Params.datesFormat.articleList | default "January 2, 2006") }}</span>
<a href="{{ .RelPermalink }}" class="float-end btn btn-outline-info btn-sm">{{ .Site.Params.terms.read | default "Read" }}</a>
</div>
</div>
</div>
+5 -5
View File
@@ -21,7 +21,7 @@
<div class="text-center">
{{ .Params.author }}
<small>|</small>
{{ .Date.Format "Jan 2, 2006" }}
{{ .Date.Format (.Site.Params.datesFormat.article | default "Jan 2, 2006") }}
{{ if or (.Site.Params.singlePages.readTime.enable | default true) (.Params.enableReadingTime) }}
<span id="readingTime">
@@ -45,7 +45,7 @@
{{ if .Params.toc | default true}}
<aside class="toc">
<h5>
Table Of Contents
{{ .Site.Params.terms.toc | default "Table Of Contents" }}
</h5>
<div class="toc-content">
{{.TableOfContents}}
@@ -55,7 +55,7 @@
{{ if .Params.tags }}
<aside class="tags">
<h5>Tags</h5>
<h5>{{ .Site.Params.terms.tags | default "Tags" }}</h5>
<ul class="tags-ul list-unstyled list-inline">
{{range .Params.tags}}
<li class="list-inline-item"><a href="{{`tags` | absURL}}/{{.| urlize}}" target="_blank">{{.}}</a></li>
@@ -66,7 +66,7 @@
{{ if .Params.socialShare | default true }}
<aside class="social">
<h5>Social</h5>
<h5>{{ .Site.Params.terms.social | default "Social" }}</h5>
<div class="social-content">
<ul class="list-inline">
<li class="list-inline-item text-center">
@@ -80,7 +80,7 @@
</a>
</li>
<li class="list-inline-item text-center">
<a target="_blank" href="mailto:?subject={{ .Title }}&amp;body=Check out this site {{ .Site.Params.hostName }}{{ .Permalink | absURL }}">
<a target="_blank" href='mailto:?subject={{ .Title }}&amp;body={{ .Site.Params.terms.emailText | default "Check out this site" }} {{ .Site.Params.hostName }}{{ .Permalink | absURL }}'>
<i class="fa fa-envelope"></i>
</a>
</li>