12 lines
129 B
Bash
12 lines
129 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
if [ -z "$1" ]
|
||
|
then
|
||
|
echo "usage: $0 <name>" >&2
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
hugo new "content/pages/${1//[^[:alnum:]-_]}.md"
|