feat: Add internationalization (i18n) support (#182)

This commit is contained in:
Youssif Shaaban Alsager
2022-08-24 05:32:40 +02:00
committed by GitHub
parent 9bc0849280
commit bd65d242be
19 changed files with 189 additions and 52 deletions

View File

@ -1,4 +1,4 @@
<h3>Backlinks</h3>
<h3>{{ i18n "backlinks" }}</h3>
<ul class="backlinks">
{{$url := urls.Parse .Site.BaseURL }}
{{$host := strings.TrimRight "/" $url.Path }}
@ -24,7 +24,7 @@
{{- end -}}
{{else}}
<li>
No backlinks found
{{ i18n "no_backlinks" }}
</li>
{{end}}
</ul>