14 lines
193 B
Bash
Executable File
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
|