diff options
Diffstat (limited to 'src/conf')
-rwxr-xr-x | src/conf | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -198,6 +198,10 @@ lastmod_iso="$(dateiso "@$lastmod_epoch" | shesc)" 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)" + + BASE_URL="$(base_url)" TITLE_RAW="$(cat -- "$FILENAME" | grep '^= .*' | head -n1 | cut -d' ' -f2- || echo 'MISSING')" @@ -277,6 +281,7 @@ cat <<-EOF export updatedat_formatted="$updatedat_formatted" export comment_url="$comment_url" export discussions_url="$discussions_url" + export lang="$lang" EOF cat "$FILENAME".embedded-config |