mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-26 06:14:06 -06:00
* Extract all strings into data/locale.toml files. * Use data/config values from correct language file. * Fix wrong lang attribute in some html layouts. * Fix header direction in rtl. * Fix footer text align in rtl. Signed-off-by: yshalsager <ysh-alsager@hotmail.com>
20 lines
724 B
HTML
20 lines
724 B
HTML
<!-- set data/config yaml file based on website language -->
|
|
{{ $config := cond (eq $.Site.Language.Lang "en") "config" (printf "config.%s" $.Site.Language.Lang) }}
|
|
{{ $data := index $.Site.Data $config }}
|
|
<!-- Contact Info -->
|
|
<div id="contact_buttons">
|
|
<footer>
|
|
{{ $name := $data.name }}
|
|
{{ $year := dateFormat "2006" now }}
|
|
<p>{{ i18n "copyright" (dict "name" $name "year" $year) | safeHTML}}</p>
|
|
<ul>
|
|
{{ if not .IsHome }}
|
|
<li><a href="{{ $.Site.BaseURL}}">{{ i18n "home" }}</a></li>
|
|
{{end}}
|
|
{{- range $data.links -}}
|
|
<li><a href="{{.link}}">{{.link_name}}</a></li>
|
|
{{- end -}}
|
|
</ul>
|
|
</footer>
|
|
</div>
|