TDSTG.com - aka My Digital Dump

Hugo Remove List Duplicates

Published: 2024-05-17 | Updated: 2024-05-21

In processing JSON records for a Hugo site I needed to remove duplicate ID elements in a list. Here's how I did it.

Golang Slugify Function

Published: 2024-05-17 | Updated: 2024-05-17

A function which takes an input string and converts it to a "slug", a string of text suitable for use in an url address

Golang Friendly Date Converter

Published: 2024-05-12 | Updated: 2024-05-17

A function which takes an input string of the format YYYY-MM-DD and converts it into a more readable "Mar 06, 2006" format

Digital Certificates with Certbot

Published: 2024-01-29 | Updated: 2024-05-16

Certbot from Let's Encrypt is the best thing going for installing and maintaining your site certificates. Use this simple one-line command to set it and forget it.

Sample Apache vhost.conf

Published: 2024-01-19 | Updated: 2024-05-16

If your server's reverse-proxy is Apache, you'll need to set up VirtualHost blocks for each domain you're hosting. Here's a sample vhost.conf file you can use to get started.