3 # Pull in global dependencies.
13 blog_title=`read_and_escape_file title | head -1`
14 printf "<title>%s</title>\n</head>\n<body>\n" "$blog_title"
15 printf "<h1>%s</h1>\n<ul>\n" "$blog_title"
17 # Iterate through entries sorted by lastmod of their source files, write entry
20 files=`ls -1t *.rst *.md | tr '\n' $'\0'`
23 for file in $files; do
24 if [ "$first_run" -lt "1" ]; then
28 intermediate_file="${file%.*}.intermediate"
29 html_file="${file%.*}.html"
30 redo-ifchange "$intermediate_file"
31 redo-ifchange "$html_file"
32 title_html=`cat "$intermediate_file" | head -1`
33 html_file_escaped=`escape_url "$html_file"`
34 printf "<li><a href=\"%s\" />%s</a></li>\n" "$html_file_escaped" "$title_html"
37 printf "</ul>\n</body>\n</html>"