X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=processor%2Findex.html.do;h=725bccb243670cacf9a5ced56d5e1d7ad93968fc;hb=7fced3bc8411add4f4d3c6b70ab4a6f01e30277a;hp=5149cace9c3aeb31e00388e726c001c1182d3fb8;hpb=a1eaed02a2a373d149239952dc515b759044d5c1;p=redo-blog
diff --git a/processor/index.html.do b/processor/index.html.do
index 5149cac..725bccb 100644
--- a/processor/index.html.do
+++ b/processor/index.html.do
@@ -17,13 +17,12 @@ tmp_snippets_dir=.tmp_index_snippets
mkdir -p "$tmp_snippets_dir"
for file in ./*.rst ./*.md; do
if [ -e "$file" ]; then
- uuid_file="${metadata_dir}/${file%.*}.uuid"
- redo-ifchange "$uuid_file"
- published=`stat -c%y "${uuid_file}"`
- published_unix=$(date -u "+%s%N" -d "${published}")
+ meta_file="${metadata_dir}/${file%.*}.automatic_metadata"
+ redo-ifchange "$meta_file"
+ published=$(get_creation_date_from_meta_file_nanoseconds "$meta_file")
snippet_file="${metadata_dir}/${file%.*}.index_snippet"
redo-ifchange "$snippet_file"
- ln -s "$srcdir/$snippet_file" "./${tmp_snippets_dir}/${published_unix}"
+ ln -s "$srcdir/$snippet_file" "./${tmp_snippets_dir}/${published}"
fi
done
@@ -43,6 +42,6 @@ rm -rf "${tmp_snippets_dir}"
# Put data into template.
template=$(cat "$template_file")
printf "%s" "$template" | \
-sed 's/%TITLE%/'"$title"'/g' | \
-sed 's/%LIST%/'"$list"'/g' | \
+sed 's/%BLOG_TITLE%/'"$title"'/g' | \
+sed 's/%INDEX%/'"$list"'/g' | \
tr '\a' '%'