From fc794694b1d83d6856b36ea08df69c2a0861d030 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 10 Apr 2023 14:12:12 -0300 Subject: v2: to translated version in --- v2/src/bin/index | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'v2/src/bin/index') diff --git a/v2/src/bin/index b/v2/src/bin/index index 553cc27..36abd2e 100755 --- a/v2/src/bin/index +++ b/v2/src/bin/index @@ -85,7 +85,15 @@ index_category_title_html="$(eval "echo \"\$index_category_${collection}_title\" export url_absolute feed_url by_category_url title_html index_recent_title_html \ index_category_title_html -translations_html="$(cat <<-EOF +translations_head_html="$(langs | + awk -v lang="${lang:?}" -v coll="$collection" '$0 != lang { + "coll2path " $0 " " coll | getline coll_path + "url-for " $0 "/" coll_path | getline url + printf " \n", + url, $0 + }' +)" +translations_body_html="$(cat <<-EOF EOF )" -export translations_html +export translations_head_html translations_body_html -- cgit v1.2.3