This commit is contained in:
vimux 2018-03-10 11:04:24 +03:00
parent 74fdf3ecdc
commit c4945ec9a5
2 changed files with 8 additions and 2 deletions

6
i18n/en.yaml Normal file
View file

@ -0,0 +1,6 @@
# Post
- id: meta_lastmod
translation: Updated
- id: meta_categories
translation: Categories

View file

@ -2,10 +2,10 @@
<time class="post__meta-published meta-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format ( .Site.Params.dateformat | default "January 02, 2006" )}}</time> <time class="post__meta-published meta-published" datetime="{{ .Date.Format "2006-01-02T15:04:05" }}">{{ .Date.Format ( .Site.Params.dateformat | default "January 02, 2006" )}}</time>
{{ end }} {{ end }}
{{- if ne .Date .Lastmod }} {{- if ne .Date .Lastmod }}
<time class="post__meta-lastmod meta-lastmod" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05" }}">Updated: {{ .Lastmod.Format ( .Site.Params.dateformat | default "January 02, 2006" )}}</time> <time class="post__meta-lastmod meta-lastmod" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05" }}">{{ T "meta_lastmod" }}: {{ .Lastmod.Format ( .Site.Params.dateformat | default "January 02, 2006" )}}</time>
{{- end }} {{- end }}
{{- if .Params.categories }} {{- if .Params.categories }}
<span class="post__meta-categories meta-categories"> <span class="post__meta-categories meta-categories">
<span class="meta-categories__list">Categories: {{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}, {{ end }}<a class="meta-categories__link" href="{{ "categories/" | relLangURL }}{{ . | urlize | lower }}" rel="category">{{ . }}</a>{{ end }}</span> <span class="meta-categories__list">{{ T "meta_categories" }}: {{ range $index, $category := .Params.categories }}{{ if gt $index 0 }}, {{ end }}<a class="meta-categories__link" href="{{ "categories/" | relLangURL }}{{ . | urlize | lower }}" rel="category">{{ . }}</a>{{ end }}</span>
</span> </span>
{{- end }} {{- end }}