1
0
forked from N0VA/kewt

feat: draft_by_default and lang

This commit is contained in:
2026-03-30 09:55:26 +02:00
parent 99e1f5dd24
commit aac9198878
2 changed files with 12 additions and 4 deletions

View File

@@ -16,6 +16,7 @@ BEGIN {
style_path = ENVIRON["AWK_STYLE_PATH"]
head_extra = ENVIRON["AWK_HEAD_EXTRA"]
header_brand = ENVIRON["AWK_HEADER_BRAND"]
lang = ENVIRON["AWK_LANG"]
if (current_url != "") {
nav = replace_all(nav, "href=\"" current_url "\"", "href=\"" current_url "\" class=\"current-page\"")
}
@@ -24,6 +25,7 @@ BEGIN {
{
line = $0
line = replace_all(line, "{{TITLE}}", title)
line = replace_all(line, "{{LANG}}", lang)
line = replace_all(line, "{{NAV}}", nav)
line = replace_all(line, "{{FOOTER}}", footer)
line = replace_all(line, "{{CSS}}", style_path)