16 lines
269 B
Bash
Executable File
16 lines
269 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"
|
|
chmod -R g+rw "content/$kind/$page"
|
|
chgrp -R www-data "content/$kind/$page"
|
|
|
|
./ac_route.sh "$dir/$page" _index.md
|