macOS Shortcut to visually list your upcoming Hugo Blog Posts (hugo list future)

The most current version as of .

The static site generator Hugo (which is also used to generate this website) has the ability to schedule blog posts to future dates by setting the date frontmatter field to any date in the future. At the next build Hugo will only publish the post, when the date is the today date or a date in the past.

Combined with scheduled page generation via automated deployment this is a great feature for your blog.

To get an overview of our publishing schedule Hugo offers this great command called hugo list future.

Entering this command in the root directory of a Hugo project will print you a list in the terminal with all upcoming posts including their publication dates.

content/posts/a-blog-post.md,2022-01-03T00:00:00Z
content/posts/another-blog-post.adoc,2022-01-02T00:00:00Z
content/posts/yet-another-post.md,2022-01-01T00:00:00Z

Such a listing is great to get an idea, when to schedule your next writing according to your other publication dates.

However, jumping into the terminal, changing into your project directory, typing out the command and scanning the output for information with your eyes each time can get uncomfortable quite fast.

Something like a graphical user interface to view you upcoming blog posts would be a great solution.

Well, thanks to macOS shortcuts (introduced in macOS Montery) we can create a shortcut, which does exactly this.

And you know what - I have built that shortcut for you:

Dark Theme  Light Theme

You only have to jump over to my store, get your copy of the shortcut and install it on your machine.

You will get a .shortcut-file, which you directly add to your Shortcuts.app, paste in your blog’s protect root directory on your mac and you are done.

The shortcut is pined in your menu bar, so you have quick access to your blog posts all the time.

After you downloaded your .shortcut you can simply open it by double clicking on the file. This will give you a screen, from which you can add the shortcut to your collection of shortcuts.

When pressing Add Shortcut… you will be prompted to enter the root directory of your Hugo project (this will be used by the shortcut to run the hugo list future command in the given directory).

And that’s it. There is nothing more to configure or setup. You can execute the shortcut anytime you want to, by executing it right from the menu bar on top of your screen.

Versions

0.0.2

0.0.1

— David Wolf