Files
utility_scripts/hugo_post.sh

8 lines
246 B
Bash
Executable File

#!/bin/sh
# Simple script to create a new post in Hugo in the format "/content/posts/Post Title/index.md" as opposed to the default "/content/posts/Post Title.md"
title="$1"
mkdir "./content/blog/$title"
hugo new content "blog/$title/index.md"