diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2023-05-04 19:38:38 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2023-05-04 19:38:38 +0200 |
commit | 020f4c7a5fe374ef22b61c5068c06ed5590a16a1 (patch) | |
tree | e8eb81b1c8db9b39b28ea7a1e148b9906c25fb51 /bin/rssg | |
parent | 95c0a5daca78660d565e8d8ff783862ee4c4851b (diff) | |
download | rgoncalves.se-020f4c7a5fe374ef22b61c5068c06ed5590a16a1.tar.gz |
fix(rssg): re-generate description and skip draft
Diffstat (limited to 'bin/rssg')
-rwxr-xr-x | bin/rssg | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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}" <item> <title>${title}</title> |