mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-18 12:09:29 -07:00
refactor: remove i18n labels and centralize in config
Delete multilingual i18n files for UI labels. Add English labels to params.toml under [labels]. Update 404.html, single.html, and nav.html to use site.Params.labels instead of i18n. Signed-off-by: Sped0n <hi@sped0n.com>
This commit is contained in:
@@ -2,9 +2,15 @@
|
||||
<div class="container">
|
||||
{{- partial "nav.html" . -}}
|
||||
<article>
|
||||
<p class="error">⛝ <u>404</u> {{- i18n 404 -}} ⛝</p>
|
||||
<p class="error">⛝ <u>404</u> {{- i18n 404 -}} ⛝</p>
|
||||
<p class="error">⛝ <u>404</u> {{- i18n 404 -}} ⛝</p>
|
||||
<p class="error">
|
||||
⛝ <u>404</u> {{- site.Params.labels.error -}} ⛝
|
||||
</p>
|
||||
<p class="error">
|
||||
⛝ <u>404</u> {{- site.Params.labels.error -}} ⛝
|
||||
</p>
|
||||
<p class="error">
|
||||
⛝ <u>404</u> {{- site.Params.labels.error -}} ⛝
|
||||
</p>
|
||||
</article>
|
||||
</div>
|
||||
{{- end -}}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{{- define "main" -}}
|
||||
<div
|
||||
class="container"
|
||||
data-next="{{- i18n "next" -}}"
|
||||
data-prev="{{- i18n "prev" -}}"
|
||||
data-close="{{- i18n "close" -}}"
|
||||
data-loading="{{- i18n "loading" -}}"
|
||||
data-next="{{- site.Params.labels.next -}}"
|
||||
data-prev="{{- site.Params.labels.prev -}}"
|
||||
data-close="{{- site.Params.labels.close -}}"
|
||||
data-loading="{{- site.Params.labels.loading -}}"
|
||||
>
|
||||
{{- with .Content -}}
|
||||
<article>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
{{- with partial "function/getImageSlice.html" . -}}
|
||||
{{- $length = len . -}}
|
||||
{{- end -}}
|
||||
<span>{{- i18n "threshold" | strings.FirstUpper -}}:</span>
|
||||
<span>{{- site.Params.labels.threshold -}}:</span>
|
||||
<span>
|
||||
<button class="dec">-</button>
|
||||
<span class="num"></span><span class="num"></span><span class="num"></span
|
||||
|
||||
Reference in New Issue
Block a user