X-Git-Url: https://plomlompom.com/repos/new_day?a=blobdiff_plain;f=processor%2Fmetadata%2Fdefault.index_snippet.do;h=2ee8f08c3789bca170b28d05debf105aab0b3cde;hb=4c034ef30bec5f882ef641f06602090aea63408a;hp=d95b27b176de639c32025094c107269c74473367;hpb=b86576c5f61cff36c80c9e0efd9d77f50dac745b;p=redo-blog diff --git a/processor/metadata/default.index_snippet.do b/processor/metadata/default.index_snippet.do index d95b27b..2ee8f08 100644 --- a/processor/metadata/default.index_snippet.do +++ b/processor/metadata/default.index_snippet.do @@ -3,12 +3,23 @@ # Pull in dependencies. . ../helpers.sh src_file=$(get_source_file "$1") +meta_file="${1%.index_snippet}.automatic_metadata" +redo-ifchange "$meta_file" intermediate_file="${1%.index_snippet}.intermediate" redo-ifchange "$intermediate_file" -html_file="${src_file%.*}.html" -redo-ifchange "$html_file" +template_file=index_snippet.tmpl +redo-ifchange "$template_file" -# Get variables, write entry. -title_html=`cat "$intermediate_file" | head -1` -html_file_escaped=`escape_url "${html_file#*/}"` -printf "