Add i18n support to the theme
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<div class="container">
|
||||
<h1>Daniel's Blog</h1>
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
</div>
|
||||
<nav>
|
||||
<div class="container">
|
||||
<a href="{{ .Site.BaseURL }}">Home</a>
|
||||
<a href="{{ relref . "about" }}">About</a>
|
||||
<a href="{{ .Site.BaseURL }}">{{ i18n "home" }}</a>
|
||||
<a href="{{ relref . "about" }}">{{ i18n "about" }}</a>
|
||||
<a href="https://github.com/DanilaFe">GitHub</a>
|
||||
<a href="{{ .Site.BaseURL }}/Resume-Danila-Fedorin.pdf">Resume</a>
|
||||
<a href="{{ .Site.BaseURL }}/tags">Tags</a>
|
||||
<a href="{{ .Site.BaseURL }}/favorites">Favorites</a>
|
||||
<a href="{{ .Site.BaseURL }}/search">Search</a>
|
||||
<a href="{{ relref . "blog" }}">All Posts</a>
|
||||
<a href="{{ .Site.BaseURL }}/Resume-Danila-Fedorin.pdf">{{ i18n "resume" }}</a>
|
||||
<a href="{{ .Site.BaseURL }}/tags">{{ i18n "tags" }}</a>
|
||||
<a href="{{ .Site.BaseURL }}/favorites">{{ i18n "favorites" }}</a>
|
||||
<a href="{{ .Site.BaseURL }}/search">{{ i18n "search" }}</a>
|
||||
<a href="{{ relref . "blog" }}">{{ i18n "allPosts" }}</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<li>
|
||||
<a href="{{ .Permalink }}" class="post-title">{{ if .Params.favorite }}{{ partial "icon.html" "star" }}{{ end }} {{ .Title }}</a>
|
||||
<p class="post-wordcount">{{ .WordCount }} words, about {{ .ReadingTime }} minutes to read.</p>
|
||||
<p class="post-preview">{{ .Summary }} . . .</p>
|
||||
<p class="post-wordcount">{{ i18n "nWords" .WordCount }}, {{ i18n "nMinutesToRead" .ReadingTime }}.</p>
|
||||
<p class="post-preview">{{ .Summary }} {{ if .Truncated }}. . .{{ end }}</p>
|
||||
</li>
|
||||
|
||||
3
layouts/partials/warning.html
Normal file
3
layouts/partials/warning.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="warning">
|
||||
<em>{{ i18n "warning" }}</em> {{ . }}
|
||||
</div>
|
||||
Reference in New Issue
Block a user