fix: config slashes
All checks were successful
All checks were successful
This commit is contained in:
@@ -9,6 +9,13 @@ function replace_all(text, token, value, pos, token_len, res) {
|
||||
}
|
||||
|
||||
BEGIN {
|
||||
current_url = ENVIRON["AWK_CURRENT_URL"]
|
||||
nav = ENVIRON["AWK_NAV"]
|
||||
title = ENVIRON["AWK_TITLE"]
|
||||
footer = ENVIRON["AWK_FOOTER"]
|
||||
style_path = ENVIRON["AWK_STYLE_PATH"]
|
||||
head_extra = ENVIRON["AWK_HEAD_EXTRA"]
|
||||
header_brand = ENVIRON["AWK_HEADER_BRAND"]
|
||||
if (current_url != "") {
|
||||
nav = replace_all(nav, "href=\"" current_url "\"", "href=\"" current_url "\" class=\"current-page\"")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user