From 4b9cddca7f0f75e321319c79e94b3af3ce37e5ef Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 10 Apr 2023 16:18:01 -0300 Subject: v2: to collection feed inside --- v2/src/bin/index | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'v2/src/bin/index') diff --git a/v2/src/bin/index b/v2/src/bin/index index 36abd2e..6212544 100755 --- a/v2/src/bin/index +++ b/v2/src/bin/index @@ -85,11 +85,16 @@ 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 +feed_title="$(eval "echo \"\$feed_${collection}_title\"")" +collection_head_html="$(printf ' ' \ + "$feed_url" \ + "$(htmlesc "$feed_title")")" + 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", + printf " \n", url, $0 }' )" @@ -103,7 +108,7 @@ translations_body_html="$(cat <<-EOF EOF )" -export translations_head_html translations_body_html +export collection_head_html translations_head_html translations_body_html -- cgit v1.2.3