In the previous post, I showed how Hugo, a static website generator, can be used to build pages from structured data. This time I’m going to show how it can be used to use date information to flag recent site updates.
Author Archives: smittytone
Build Web Pages from JSON Data with Hugo
In this second look at building a website using Hugo, a static site generator, I’m going to explore how to assemble pages from structured data rather than written content.
One use-case for this is a release notes page in a site devoted to a software applications. Case in point: I wrote an app called Squinter which is a macOS tool for developing apps on the Electric Imp Platform. In addition to a page describing the software, I have a separate page which present the app’s release notes. Each note is prefixed with a lozenge indicating whether the note refers to a new feature, an enhancement to an existing feature, or is a bug fix.
Use Hugo to Automate your Website
After basing my software-oriented website on a hand-assembled set of pages, I recently decided it was time to introduce some automation. Suddenly there were too many pages that needed to be updated every time I released a new version of one of my apps. Additionally, I was writing more apps and utilities, so this process could only ever become more onerous if I continued with a manual set-up.
pdfmaker 2.0.0 released
I’ve just released version 2.2.0 of pdfmaker. You can view the source code here, and download an installer package here.
You can now convert a PDF to a set of images.
For a more detailed post about pdfmaker, click here.
How to provide file icon thumbnails in macOS
Update My PreviewMarkdown app, which provides Markdown file previews and icon thumbnails in Catalins, is now available from the Mac App Store.
Providing content-based icon thumbnails in macOS Catalina follows the same pattern as generating file previews: QuickLook runs code from an app extension and calls a function within that code to draw the image that will be placed on the icon.

How to create file previews in macOS
Update My PreviewMarkdown app, which provides Markdown file previews and icon thumbnails in Catalina, is now available from the Mac App Store.
macOS Catalina introduces a new mechanism for providing file previews and content-based file icons. The system for doing this is still QuickLook, but the standalone or app-hosted QuickLook generators that have been in use for some time have been deprecated in favour of delivering this functionality through app extensions.

pdfmaker 1.1.0 released
I’ve just released version 1.1.0 of pdfmaker. You can view the source code here, and download an installer package here.
You can now select a single source file, not just a folder of files, and you specify the output PDF’s filename as part of the specified destination path, rather than separately (so the --name switch has been removed).
For a more detailed post about pdfmaker, click here.
How to fix iCloud bookmark sync glitches
Has iCloud and/or Safari just borked your bookmarks? This happened to me yesterday; here’s how I fixed it…
How to make one PDF from multiple images on macOS
Google the title of this post and you will get plenty of results, but all almost all of them steer you toward opening the image or images in macOS’ Preview app and exporting to PDF. Yes, this method works, but it doesn’t give you much control over the process, and it’s not scriptable.
