Hugo Tips

Hints and Tips for managing your Hugo based website.

Here are a bunch of things that are quick fixes, things I found that help me run my site or just short bits of code. Most of this stuff is too short to deserve a longer write-up.

But still it is useful, and hope you find it helps too.

Get notified when new tips are published ...
Email:
First Name:

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices here.

Sunday, Jul 19, 2020

Have script only run on Production

1 minute read
Want a script to only run on Production? I don’t recommend this, as that can make it difficult for testing functionality locally
Wednesday, Jul 15, 2020

Comma Delimit Tags

1 minute read
Nice to have a set of tags on your post, that are clickable and correctly comma delimited … meaning the last tag doesnt get a comma.
Sunday, Jul 12, 2020

Deploy Hugo with rsync and zsh on mac

1 minute read

Just an update for a script in Zsh instead of Bash and rsync for Hugo.

Sunday, Jul 12, 2020

Start new hugo site with no theme

2 minutes read
Let’s find out what happens when you create a new Hugo site - with no theme, but add content - then run hugo server -D
Saturday, Jul 11, 2020

Show Creative Commons licence on content

2 minutes read
How to show creative commons licence on your site. As some people want to licence their content under creative commons … and I said I’d write a bit of code … Here goes …
Saturday, Jul 11, 2020

Show Hugo Shortcodes in content

1 minute read
When writing instruction about shortcodes, wrapping shortcodes in a codespan, code-block or code-fence doesn’t stop them from running.
Saturday, Jul 11, 2020

Zero Maintenance Copyright in Footer

1 minute read
Minimalist and zero maintenance tip … Drop this into your footer partial layout and you’ll never have to update the year - thanks to Hugo, the year is always right