diff options
author | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-09-30 12:39:38 +0300 |
---|---|---|
committer | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-09-30 12:39:38 +0300 |
commit | 7ffbe45d665c34048803bb21b8e3002c8b605e94 (patch) | |
tree | b5e367ce638519c63e3221d46c06b04c0f31f63b /layouts | |
parent | c306070aeed76cb98d9cc2eb36fd469b624af6eb (diff) |
Add i18n capabilities
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 4 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | layouts/partials/header.html | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2e05fc5..6e46c07 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,7 +3,7 @@ <main> <div class="post"> <div class="post-info"> - <span>Written by</span> + <span>{{ i18n "writtenBy" }}</span> {{- if .Params.Author }} {{ .Params.Author }} {{- else }} @@ -12,7 +12,7 @@ {{- if .PublishDate }} <br> - <span>on </span><time datetime="{{ .PublishDate }}">{{ .PublishDate.Format "January 2, 2006" }}</time> + <span>{{ i18n "on" }} </span><time datetime="{{ .PublishDate }}">{{ .PublishDate.Format "January 2, 2006" }}</time> {{- end }} </div> diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 0d57b9f..45f10de 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,6 +1,6 @@ <footer> <span> - © <time datetime="{{ now }}">{{ now.Format "2006" }}</time> {{ .Site.Params.Author }}. Made with Hugo using the <a href="https://github.com/EmielH/tale-hugo/">Tale</a> theme. + © <time datetime="{{ now }}">{{ now.Format "2006" }}</time> {{ .Site.Params.Author }}. {{ i18n "generator" | safeHTML }} </span> </footer> </body> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 21e7320..6f00f62 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -10,8 +10,8 @@ <h2 class="nav-title">{{ .Site.Title }}</h2> </a> <ul> - <li><a href="{{ .Site.BaseURL }}about">About</a></li> - <li><a href="{{ .Site.BaseURL }}">Posts</a></li> + <li><a href="{{ .Site.BaseURL }}about">{{ i18n "about" }}</a></li> + <li><a href="{{ .Site.BaseURL }}">{{ i18n "posts" }}</a></li> </ul> </div> </nav>
\ No newline at end of file |