feat(): add support for translations
This commit is contained in:
parent
b9047b4cf3
commit
b250023b85
|
@ -0,0 +1,4 @@
|
||||||
|
mostrecentposts: Most recent posts
|
||||||
|
tags: Tags
|
||||||
|
categories: Categories
|
||||||
|
datepublished: Published
|
|
@ -0,0 +1,4 @@
|
||||||
|
mostrecentposts: Les derniers articles
|
||||||
|
tags: Tags
|
||||||
|
categories: Catégories
|
||||||
|
datepublished: Publié le
|
|
@ -1,6 +1,6 @@
|
||||||
{{ partial "top.html" . }}
|
{{ partial "top.html" . }}
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
<h4>Publié le {{ dateFormat "01-02-2006 15:04:05" .Date }}</h4>
|
<h4>{{ ( index $.Site.Data.translations $.Site.Params.locale ).datepublished }} {{ dateFormat "01-02-2006 15:04:05" .Date }}</h4>
|
||||||
{{ partial "share.html" . }}
|
{{ partial "share.html" . }}
|
||||||
<article>
|
<article>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<nav class="col-md-3">
|
<nav class="col-md-3">
|
||||||
<div id="last-posts" class="open">
|
<div id="last-posts" class="open">
|
||||||
<h3 data-open="last-posts">{{ .Site.Title }} - Les derniers articles</h3>
|
<h3 data-open="last-posts">{{ .Site.Title }} - {{ ( index $.Site.Data.translations $.Site.Params.locale ).mostrecentposts }}</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range last 10 .Site.Pages }}
|
{{ range last 10 .Site.Pages }}
|
||||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="tags" class="open">
|
<div id="tags" class="open">
|
||||||
<h3 data-open="tags">Tags</h3>
|
<h3 data-open="tags">{{ ( index $.Site.Data.translations $.Site.Params.locale ).tags }}</h3>
|
||||||
<ul class="tags">
|
<ul class="tags">
|
||||||
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
|
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
|
||||||
<li><a href="/tags/{{ $name | urlize }}">{{ $name }}</a></li>
|
<li><a href="/tags/{{ $name | urlize }}">{{ $name }}</a></li>
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="categories" class="open">
|
<div id="categories" class="open">
|
||||||
<h3 data-open="categories">Categories</h3>
|
<h3 data-open="categories">{{ ( index $.Site.Data.translations $.Site.Params.locale ).categories }}</h3>
|
||||||
<ul class="categories">
|
<ul class="categories">
|
||||||
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
|
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
|
||||||
<li><a href="/categories/{{ $name | urlize }}">{{ $name }}</a></li>
|
<li><a href="/categories/{{ $name | urlize }}">{{ $name }}</a></li>
|
||||||
|
|
Loading…
Reference in New Issue