diff options
| author | EuAndreh <eu@euandre.org> | 2025-05-01 18:34:41 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2025-05-01 19:17:48 -0300 |
| commit | 1fce51b295283d3ac2ae8a36d81e44845fb27415 (patch) | |
| tree | 9c4a38594a3ff706aeedd20014ba8b90b887d401 /src/conf | |
| parent | Support multiple languages for "categories" string (diff) | |
| download | mkwb-1fce51b295283d3ac2ae8a36d81e44845fb27415.tar.gz mkwb-1fce51b295283d3ac2ae8a36d81e44845fb27415.tar.xz | |
src/conf: Support i18n of $header_links
Diffstat (limited to 'src/conf')
| -rwxr-xr-x | src/conf | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -51,7 +51,7 @@ dateepoch() { } -unset header_links categories custombody +unset categories custombody unset url_pre site_name feed_title feed_url feed_alternate_url unset list_addr discussions_url_prefix @@ -201,6 +201,8 @@ lastmod_formatted="$(datefmt "$lastmod_iso" | shesc)" LEN="$( printf '%s..' "$root_dir" | sed -e 's|//|/|g' -e 's|/$||' | wc -c)" lang="$(printf '%s' "$FILENAME" | cut -c "$LEN"- | cut -d/ -f1 | shesc)" +header_links="$(printf '%s/%s.txt' "$headers_dir" "$lang" | shesc)" + BASE_URL="$(base_url)" TITLE_RAW="$(cat -- "$FILENAME" | grep '^= .*' | head -n1 | cut -d' ' -f2- || @@ -282,6 +284,7 @@ cat <<-EOF export comment_url="$comment_url" export discussions_url="$discussions_url" export lang="$lang" + export header_links="$header_links" EOF cat "$FILENAME".embedded-config |
