Everything here is plain Markdown plus Blowfish’s shortcodes. The contents list on the side, the tags and categories above, the reading time and the series box all come from settings at the top of the file.
Callouts #
The alert shortcode:
GitHub-style callouts work too, written in plain Markdown, so they also render on GitHub:
A note callout.
A tip callout.
A warning callout.
Click to expand
Callouts can also be folded away until clicked.
Text extras #
Badges: New Draft idea
Icons inline with text: GitHub, code, email.
Buttons: Jump to the code section
Footnotes work as normal Markdown1, and so do tables:
| Feature | Built in? | Needs a shortcode? |
|---|---|---|
| Code highlighting | Yes | No |
| Maths | Yes | katex |
| Diagrams | Yes | mermaid |
| Charts | Yes | chart |
Code #
Code blocks are highlighted and have a copy button (hover over the block):
|
|
Inline code looks like hugo server -D.
Tabs are handy for showing the same thing several ways:
brew install hugosudo dpkg -i hugo_extended_0.167.0_linux-amd64.debwinget install Hugo.Hugo.ExtendedCode with a figure below it #
Hugo doesn’t run code. For this section I ran the code below on my Mac, saved the PNG into the post’s folder and referenced it underneath. Click the image to zoom.
import numpy as np
import matplotlib.pyplot as plt
rng = np.random.default_rng(42)
days = np.arange(365)
# Made-up Dublin-ish daily temperatures: a seasonal curve plus noise
temp = 10 + 5.5 * np.sin(2 * np.pi * (days - 105) / 365) + rng.normal(0, 1.6, 365)
smooth = np.convolve(temp, np.ones(14) / 14, mode="same")
fig, ax = plt.subplots(figsize=(9, 4), dpi=150)
ax.plot(days, temp, color="#94a3b8", lw=0.8, label="Daily")
ax.plot(days[7:-7], smooth[7:-7], color="#0ea5e9", lw=2.5, label="14-day average")
ax.set(xlabel="Day of year", ylabel="Temperature (°C)", xlim=(0, 364))
ax.spines[["top", "right"]].set_visible(False)
ax.legend(frameon=False)
fig.tight_layout()
fig.savefig("temps.png")
Maths #
Inline maths like \(e^{i\pi} + 1 = 0\) sits in the text. Display maths gets its own line:
$$ \bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i, \qquad s^2 = \frac{1}{n-1}\sum_{i=1}^{n}\left(x_i - \bar{x}\right)^2 $$Diagrams #
Diagrams are written as text with Mermaid. This is how a post gets from my Mac to this page:
flowchart LR A[Write post in Markdown] --> B[hugo server preview] B --> C[hugo build] C --> D[rsync to VPS] D --> E[Apache serves martinwalshe.com]
Charts #
Interactive charts use Chart.js. Hover over the bars:
Images #
A gallery, with each image a third of the width:
And the same images as a carousel:
Layout pieces #
Stats:
0.167.0
Hugo version
v3.9.0
Blowfish version
1
Posts
Steps:
-
1
Write
Create a post folder withhugo new content. -
2
Preview
Check it withhugo server -D. -
3
Publish
Build and rsync it to the server.
A timeline:
-
Blog set up
August 2025
Hugo and PaperMod
First version of the site, with a couple of test posts. -
Clean-up
26 Oct 2026
Old test pages removed
Stale pages that had stayed live were cleared out. -
Switched to Blowfish
26 Oct 2026
Hugo upgraded to 0.167.0
New theme, and this test post.
An accordion, for content you can fold away:
What is this post for?
Will it stay up?
-
Like this one. ↩︎