#!/bin/sh # Pull in global dependencies. . ./helpers.sh metadata_dir=metadata 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"