↓ Skip to main content
A tour of Blowfish (test post)
The header image is just a file called feature.png in the post’s folder.

A tour of Blowfish (test post)

·612 words·3 mins
Author
Martin Walshe
Building this site - This article is part of a series.
Part 1: This Article
This is a test post. It shows what the Blowfish theme can do, so I can decide what to use in real posts.

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:

Heads up. This is the default alert, good for warnings.
Alerts can take any icon and colours.

GitHub-style callouts work too, written in plain Markdown, so they also render on GitHub:

Note

A note callout.

Tip

A tip callout.

Warning

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):

1
2
3
4
5
def greet(name: str) -> str:
    """Say hello."""
    return f"Hello, {name}!"

print(greet("world"))

Inline code looks like hugo server -D.

Tabs are handy for showing the same thing several ways:

brew install hugo
sudo dpkg -i hugo_extended_0.167.0_linux-amd64.deb
winget install Hugo.Hugo.Extended

Code 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")
Line chart of made-up daily temperatures over a year with a 14-day average
Made-up daily temperatures with a 14-day rolling average. Blowfish resizes the image automatically for different screens.

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

Pinned to what Blowfish supports.

v3.9.0

Blowfish version

Upgraded together with Hugo.

1

Posts

This one, for now.

Steps:

  1. 1

    Write

    Create a post folder with hugo new content.
  2. 2

    Preview

    Check it with hugo server -D.
  3. 3

    Publish

    Build and rsync it to the server.

A timeline:

  1. Blog set up

    August 2025

    Hugo and PaperMod

    First version of the site, with a couple of test posts.
  2. Clean-up

    26 Oct 2026

    Old test pages removed

    Stale pages that had stayed live were cleared out.
  3. 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?
Trying out Blowfish’s features before writing real posts.
Will it stay up?
No. It’ll be deleted once I’ve had a look.

  1. Like this one. ↩︎

Building this site - This article is part of a series.
Part 1: This Article