From b00c34342587cfcbb3b9ad357df01fc002182a3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 28 Sep 2021 09:57:32 +0200 Subject: rssg: More informations and deterministic guid --- bin/rssg | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/rssg b/bin/rssg index bceb624..59f0797 100755 --- a/bin/rssg +++ b/bin/rssg @@ -13,8 +13,13 @@ cat <<-EOF > "${rss_out_file}" ${website_description} ${website_link} $(date +"%Y") ${website_title} - All rights reserved +${website_email} +${website_email} ${current_date} ${current_date} +${website_generator} +${website_language} +https://validator.w3.org/feed/docs/rss2.html 1800 EOF @@ -22,11 +27,14 @@ for file in $(__list_files_date "${rss_dir}"); do title=$(__get_value_title "${file}") date=$(__get_value_date_publication "${file}") link="${website_link}/$(__get_final_filename ${file})" + guid="$(echo ${link} | sha256)" + cat <<-EOF >> "${rss_out_file}" ${title} ${link} ${date} + ${guid} EOF done -- cgit v1.2.3