Support multilingual mode (experimental)

Please report any bugs!
This commit is contained in:
2021-10-11 18:24:14 -05:00
parent 03834fb1ba
commit c7cfb9c844
12 changed files with 88 additions and 14 deletions

View File

@ -1,6 +1,6 @@
{{ partialCached "credit.html" . }}
<!DOCTYPE html>
<html lang="en">
<html lang="{{ .Language.Lang }}">
{{- partial "head.html" . -}}
<body>

View File

@ -2,7 +2,7 @@
{{ if or (eq .Kind "term") (eq .Kind "taxonomy") }}
<h1>
{{ partialCached "icon.html" "filter" "filter" }}
Filtering for "{{ .Title }}"
{{ i18n "filtering_for" .Title }}
{{ if eq .Kind "term" }}
<span class="rss-link">
{{ with .OutputFormats.Get "rss" }}
@ -37,7 +37,7 @@
{{ .Render "summary" }}
{{ else }}
<div>
No posts here!
{{ i18n "no_posts" }}
</div>
{{ end }}

View File

@ -10,7 +10,7 @@
{{ if .Params.Toc }}
<div id="table-of-contents">
<h2>Table of Contents</h2>
<h2>{{ i18n "table_of_contents" }}</h2>
{{ .TableOfContents }}
</div>
{{ end }}

View File

@ -32,6 +32,6 @@
</div>
<div class="readmore">
<a href="{{ .Permalink }}">Read more &rarr;</a>
<a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a>
</div>
</div>