From 020f4c7a5fe374ef22b61c5068c06ed5590a16a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 4 May 2023 19:38:38 +0200 Subject: fix(rssg): re-generate description and skip draft --- bin/rssg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/rssg b/bin/rssg index b8656c4..aee5735 100755 --- a/bin/rssg +++ b/bin/rssg @@ -24,10 +24,13 @@ cat <<-EOF > "${rss_out_file}" EOF for file in $(__list_files_date "${rss_dir}"); do + __get_value "${file}" "draft" >/dev/null && continue + title=$(__get_value_title "${file}") date=$(__get_value_date_publication "${file}") link="${website_link}/$(__get_final_filename "${file}")" guid="$(echo "${link}" | "${__sha256}" | cut -d ' ' -f 1)" + description=$(__generate_rss_body "${file}") cat <<-EOF >> "${rss_out_file}" ${title} -- cgit v1.2.3