10 lines
127 B
Plaintext
10 lines
127 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
YEAR=${1:-$(date "+%Y")}
|
||
|
|
||
|
echo -n "Titulo: "
|
||
|
read TITLE
|
||
|
SLUG=$(bin/slugify ${TITLE})
|
||
|
|
||
|
hugo new ${YEAR}/${SLUG}.md
|