From f925498eb727bcdac7c3dafc65365cff6bc4d577 Mon Sep 17 00:00:00 2001 From: Oleksii Dobrovolskyi Date: Sun, 17 Mar 2024 13:58:36 +0200 Subject: Change date format to YYYY-MM-DD --- config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1 From f602b789b4552de0c1f7d726cbe3117c3ba278ca Mon Sep 17 00:00:00 2001 From: Oleksii Dobrovolskyi Date: Sun, 17 Mar 2024 14:01:05 +0200 Subject: Add styling to active language in language switcher --- templates/language_switcher.html | 2 +- templates/style.css.html | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 %} - {{ tr.name }} + {{ tr.name }} {%- else %} {{ tr.name }} {%- 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; -- cgit 1.4.1