3 # Pull in global dependencies.
5 intermediate_file="${1%.html}.intermediate"
7 redo-ifchange "$intermediate_file"
10 blog_title=`read_and_escape_file title | head -1`
11 title_html=`cat "$intermediate_file" | head -1`
12 title_plaintext=`echo "$title_html" | html2text`
13 title_plaintext_escaped=`escape_html "$title_plaintext"`
14 body=`cat "$intermediate_file" | sed 1d`
16 # Write first part of entry head.
23 # Write remaining entry head and body.
24 printf "<title>%s – %s</title>\n</head>\n<body>\n" "$blog_title" "$title_plaintext_escaped"
25 #printf "<title>%s – %s</title>\n</head>\n<body>\n" "$blog_title" "$entry_title"
26 printf "<h1>%s</h1>\n" "$title_html"
27 printf "<section>\n%s\n</section>\n</body>\n</html>" "$body"