X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/day?a=blobdiff_plain;f=processor%2Fmetadata%2Fdefault.feed_snippet.do;h=9a9b7ab218ea96a5adcf4bc17e37b5d8f41f5bae;hb=c841d869ec1eaa8107bece1385038339aa6cfd3e;hp=73a2d5649451fc8296405944eaeba4a15afb6325;hpb=0759afe3db42ac3ca2c708a7f08fd37d5401bf7a;p=redo-blog
diff --git a/processor/metadata/default.feed_snippet.do b/processor/metadata/default.feed_snippet.do
index 73a2d56..9a9b7ab 100644
--- a/processor/metadata/default.feed_snippet.do
+++ b/processor/metadata/default.feed_snippet.do
@@ -3,7 +3,7 @@
# Handle URL from .links file.
prep_url() {
url=$(escape_html "$1")
- printf "\n%s" "$url" "$url"
+ printf "\n" "$url"
}
# Pull in dependencies.
@@ -14,6 +14,7 @@ redo-ifchange "$meta_file"
intermediate_file="${1%.feed_snippet}.intermediate"
redo-ifchange "$intermediate_file"
replies_file="${src_file%.*}.links"
+redo-ifchange "$replies_file"
# Get variables, write entry.
html_file=$(escape_url "${1%.feed_snippet}.html")
@@ -24,9 +25,7 @@ uuid=$(get_uuid_from_meta_file "$meta_file")
published_unix=$(get_creation_date_from_meta_file_seconds "$meta_file")
published_rfc3339=$(date -u "+%Y-%m-%dT%TZ" -d "@${published_unix}")
body=$(read_and_escape_file "$intermediate_file" | sed 1d)
-if test -f "$replies_file"; then
- replies=$(while read line; do prep_url "$line"; done < "$replies_file")
-fi
+replies=$(while read line; do prep_url "$line"; done < "$replies_file")
printf "\n"
printf "%s\n" "$title"
printf "urn:uuid:%s\n" "$uuid"