Television Station GTV9 Melbourne Australia

A collection of images, stories and memories.

Home 1956_1969 1970_1979 Reunions Roll Call Stories Contact
A collection of my random notes about constructing this website using Hugo, Javascript, CSS, and hosting on Netlify. Note that they may not function correctly on your website.

Compressing Images

There are many free online services that will compress images for you. I use and recommend TinyPNG uses smart lossy compression techniques to reduce the file size of your PNG files.


Remove a directory from your Git repository. Use rm -r switch with the git command to remove directory recursively. After removing the directory you need to commit changes to the local git repository.


The Heading Tags Test SEO testing sites recommend that your headings are arranged as h1, h2, h3, etc. Your main site title (if defined in config.


layouts/shortcodes/img.html {{/* get file that matches the filename as specified as src="" in shortcode */}} {{ $src := .Page.Resources.GetMatch (printf "*%s*" (.

Creating a Post - Hugo

Create a new post using terminal. Navigate to the folder containing your Hugo content files. cd / cd your_hugo_folder/content ls -l

Testing it all - Hugo Check your html for errors. One error, but there is not much I can do about it, being a Google link.

Create a clickable script

Using Coteditor or similar create a file on your Desktop and call it: Then enter your lines of code, for example:

Script to create a post

Follow the instructions found on this site to “Create a clickable script”. Then use this code… Notes: The code will prompt you to enter a name for your new post, avoid spaces and underscores in the name, use a dash instead, for example: my-new-post .

Simple deploy script - Hugo, Netlify

A script to automatically push to Github, then deploy to Netlify. cd / cd your_directory rm -rf public hugo git init