#!/bin/sh # Pull in global dependencies. metadata_dir=.meta . "$metadata_dir"/helpers.sh srcdir=`pwd` title_file="$metadata_dir"/title redo-ifchange "$title_file" # Write index head. cat << EOF EOF blog_title=`read_and_escape_file "$title_file" | head -1` printf "%s\n\n\n" "$blog_title" printf "

%s

\n\n\n"