2022-10-26 23:12:29 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
dir=$1 file=$2
|
|
|
|
|
|
|
|
page=${file%.create}
|
|
|
|
|
|
|
|
kind=$(cat "$dir/$file")
|
|
|
|
|
|
|
|
echo "Creating content/$kind/$page"
|
|
|
|
|
|
|
|
hugo --source=.. new "content/$kind/$page"
|
2022-11-05 22:23:24 +01:00
|
|
|
chmod -R g+rw "content/$kind/$page"
|
|
|
|
chgrp -R www-data "content/$kind/$page"
|
2022-10-26 23:12:29 +02:00
|
|
|
|
2022-11-05 22:23:24 +01:00
|
|
|
./ac_route.sh "$dir/$page" _index.md
|