X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/calendar?a=blobdiff_plain;f=processor%2Fdefault.html.do;h=fcef3efe6b778e72d24f434afc6b51ca7c6d6325;hb=f88948caf952c4fd913ea7466c2f1ab3455af506;hp=3ff413230f8babfdd13d5ab3569f741327abd435;hpb=dfdd193cf3f2f215fd26bae06ada013a14422581;p=redo-blog diff --git a/processor/default.html.do b/processor/default.html.do index 3ff4132..fcef3ef 100644 --- a/processor/default.html.do +++ b/processor/default.html.do @@ -2,12 +2,14 @@ # Pull in global dependencies. . ./helpers.sh -intermediate_file="${1%.html}.intermediate" -redo-ifchange title +metadata_dir=metadata +intermediate_file="${metadata_dir}/${1%.html}.intermediate" +title_file="${metadata_dir}"/title +redo-ifchange "$title_file" redo-ifchange "$intermediate_file" # Build entry data. -blog_title=`read_and_escape_file title | head -1` +blog_title=`read_and_escape_file "$title_file" | head -1` title_html=`cat "$intermediate_file" | head -1` title_plaintext=`echo "$title_html" | html2text` title_plaintext_escaped=`escape_html "$title_plaintext"` @@ -22,6 +24,5 @@ EOF # Write remaining entry head and body. printf "