diff options
author | Alan Pearce | 2024-03-17 14:12:21 +0000 |
---|---|---|
committer | Alan Pearce | 2024-03-17 14:12:21 +0000 |
commit | 760294e3c41b05ffd816a24193b9de89bda9e4ee (patch) | |
tree | dd990bb0c8f6e3133e235bd7208b0a618e1bce93 | |
parent | e5ea07c4d62e19102764be22bfeb221bb77bd9c5 (diff) | |
parent | f602b789b4552de0c1f7d726cbe3117c3ba278ca (diff) | |
download | zola-bearblog-760294e3c41b05ffd816a24193b9de89bda9e4ee.tar.lz zola-bearblog-760294e3c41b05ffd816a24193b9de89bda9e4ee.tar.zst zola-bearblog-760294e3c41b05ffd816a24193b9de89bda9e4ee.zip |
Merge pull request 'Minor multilingual fix: change date format to "YYYY-MM-DD", add margin to active language in language switcher' (#13) from dobrvlskyi/zola-bearblog:multilingual into main
Reviewed-on: https://codeberg.org/alanpearce/zola-bearblog/pulls/13
-rw-r--r-- | config.toml | 2 | ||||
-rw-r--r-- | templates/language_switcher.html | 2 | ||||
-rw-r--r-- | templates/style.css.html | 5 |
3 files changed, 7 insertions, 2 deletions
diff --git a/config.toml b/config.toml index 92637f3..fcb1d61 100644 --- a/config.toml +++ b/config.toml @@ -42,7 +42,7 @@ made_with = "Erstellt mit" highlight_code = true [extra] -date_format="%d %b, %Y" +date_format="%Y-%m-%d" webserver_sends_csp_headers=true language_switcher=true diff --git a/templates/language_switcher.html b/templates/language_switcher.html index 3968c73..512b409 100644 --- a/templates/language_switcher.html +++ b/templates/language_switcher.html @@ -3,7 +3,7 @@ {%- set language_agnostic_path = current_path | default(value="/") | replace(from='/' ~ lang ~ '/', to = '/') | trim_start_matches(pat = '/') -%} {%- for tr in config.extra.translations %} {%- if tr.code == lang %} - <strong>{{ tr.name }}</strong> + <active>{{ tr.name }}</active> {%- else %} <a href="{{ get_url(path=language_agnostic_path, lang=tr.code) ~ "/" }}" hreflang="{{ tr.code }}">{{ tr.name }}</a> {%- endif %} diff --git a/templates/style.css.html b/templates/style.css.html index 267b13a..1cd23b6 100644 --- a/templates/style.css.html +++ b/templates/style.css.html @@ -47,6 +47,11 @@ margin-right: 10px; } + nav active { + font-weight: bold; + margin-right: 10px; + } + textarea { width: 100%; font-size: 1rem; |