X-Git-Url: https://plomlompom.com/repos/?p=redo-blog;a=blobdiff_plain;f=default.html.do;fp=default.html.do;h=0000000000000000000000000000000000000000;hp=3ff413230f8babfdd13d5ab3569f741327abd435;hb=dfdd193cf3f2f215fd26bae06ada013a14422581;hpb=72e91a2e5600566eae283d427450fa1c2fe4969b diff --git a/default.html.do b/default.html.do deleted file mode 100644 index 3ff4132..0000000 --- a/default.html.do +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -# Pull in global dependencies. -. ./helpers.sh -intermediate_file="${1%.html}.intermediate" -redo-ifchange title -redo-ifchange "$intermediate_file" - -# Build entry data. -blog_title=`read_and_escape_file title | head -1` -title_html=`cat "$intermediate_file" | head -1` -title_plaintext=`echo "$title_html" | html2text` -title_plaintext_escaped=`escape_html "$title_plaintext"` -body=`cat "$intermediate_file" | sed 1d` - -# Write first part of entry head. -cat << EOF - - - -EOF - -# Write remaining entry head and body. -printf "%s – %s\n\n\n" "$blog_title" "$title_plaintext_escaped" -#printf "%s – %s\n\n\n" "$blog_title" "$entry_title" -printf "

%s

\n" "$title_html" -printf "
\n%s\n
\n\n" "$body"