From f416a38df0caf397d22a07f227f1de72856a100a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Wed, 16 Nov 2022 22:54:11 +0100 Subject: feat(bin): generate + embed description in RSS articles --- bin/rssg | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin/rssg') diff --git a/bin/rssg b/bin/rssg index d42ff14..02e6b54 100755 --- a/bin/rssg +++ b/bin/rssg @@ -27,11 +27,12 @@ EOF 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})" + link="${website_link}/$(__get_final_filename "${file}")" + description=$(__generate_rss_body "${file}") if [ "${uname}" = "Linux" ]; then - guid="$(echo ${link} | sha256sum | cut -d ' ' -f 1)" + guid="$(echo "${link}" | sha256sum | cut -d ' ' -f 1)" else - guid="$(echo ${link} | sha256)" + guid="$(echo "${link}" | sha256)" fi cat <<-EOF >> "${rss_out_file}" @@ -40,6 +41,7 @@ for file in $(__list_files_date "${rss_dir}"); do ${link} ${date} ${guid} + ${description} EOF done -- cgit v1.2.3