The Problem
This project is built with Hugo and uses the Minimal Hugo theme.
This post is part of an ongoing effort to tailor the theme over time.
For this post, we’ll look at the issue that when Hugo rendered a webpage from a markdown file it automatically converted text URLs to hyperlinks.
The Process
A web search for how to disable automatic hyperlinking in Hugo led to a few discussions of the issue:
- Disabling smart quotes, auto code blocks, and auto hyperlinks?
- Goldmark: How to disable autolinks
- Configure Markup: Goldmark
Interpolating between them led to a solution.
The Solution
Adding the following to the config.toml file resolved the issue.
[markup]
[markup.goldmark]
[markup.goldmark.extensions]
linkify = false