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/static/gitweb.js?a=blobdiff_plain;ds=sidebyside;f=processor%2Fmetadata%2Fdefault.index_snippet.do;h=2ee8f08c3789bca170b28d05debf105aab0b3cde;hb=4c034ef30bec5f882ef641f06602090aea63408a;hp=e332350f23fe81f6b1b27dd5ac1208e5d4930053;hpb=2b95ae7640d3037ae89380f0a388ae27bfda200f;p=redo-blog diff --git a/processor/metadata/default.index_snippet.do b/processor/metadata/default.index_snippet.do index e332350..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 "${1%.index_snippet}.html") -printf "