X-Git-Url: https://plomlompom.com/repos/?p=redo-blog;a=blobdiff_plain;f=processor%2Findex.html.do;h=af8ba85e225e05599ba7cca418f68ad453b9376f;hp=dca7c33bacc4795c5e727f2bdd2dd6e3f2e062c1;hb=4373137de8ac6ad8731e6828a9876de9efe0a82e;hpb=6138fd7efef3873fa3f48b92f2275f86eb76e329 diff --git a/processor/index.html.do b/processor/index.html.do index dca7c33..af8ba85 100644 --- a/processor/index.html.do +++ b/processor/index.html.do @@ -2,6 +2,7 @@ # Pull in global dependencies. . ./helpers.sh +srcdir=`pwd` title_file=title.meta redo-ifchange "$title_file" @@ -23,13 +24,9 @@ for file in ./*.rst ./*.md; do redo-ifchange "$uuid_file" published=`stat -c%y "${uuid_file}"` published_unix=$(date -u "+%s%N" -d "${published}") - intermediate_file="${file%.*}.intermediate" - html_file="${file%.*}.html" - redo-ifchange "$intermediate_file" - redo-ifchange "$html_file" - title_html=`cat "$intermediate_file" | head -1` - html_file_escaped=`escape_url "${html_file#\./}"` - printf "
  • %s
  • \n" "$html_file_escaped" "$title_html" > ./index_snippets/${published_unix} + snippet_file="${file%.*}.index_snippet" + redo-ifchange "$snippet_file" + ln -s "$srcdir/$snippet_file" "./index_snippets/${published_unix}" fi done