Automating Hugo Page Creation

This is a simple shell script to automate the creation of hugo pages. Run this command in your site directory to create a script file: nano newpage.sh Now, paste this into the file: #!/bin/bash # Prompt the user for a string. echo "What is the title of your post?" read title command="hugo new posts/$title.md" # Run the command. echo "Running command: $command" eval "$command" Thats it! Now, when you want to make a new post, just run:...

July 18, 2023