hugohm/bin/nueva_pagina

10 lines
127 B
Plaintext
Raw Permalink Normal View History

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