hugohm/bin/nuevo_nodo

10 lines
139 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
YEAR=${1:-$(date "+%Y")}
echo -n "Titulo: "
read TITLE
SLUG=$(bin/slugify ${TITLE})
hugo new ${YEAR}/nodos/${SLUG}.md -k nodo