hugohm/bin/nueva_pagina

10 lines
127 B
Bash
Executable File

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