acoeur/bin/_commands/create.sh
2022-11-07 22:30:43 +01:00

14 lines
193 B
Bash
Executable File

#!/bin/sh
dir=$1 file=$2
page=${file%.create}
kind=$(cat "$dir/$file")
echo "Creating content/$kind/$page"
hugo --source=.. new "content/$kind/$page"
./ac_route.sh "$dir/$page" _index.md