FAQ

Images render tiny, in the middle of a line
Your hugo.toml is missing wrapStandAloneImageWithinParagraph = false. Hugo ignores a theme’s [markup] settings, so you have to add it yourself. See Getting started.
The home page lists the wrong pages
Set mainSections to the section that holds your posts. Without it, Hugo picks the section with the most pages. See Pages.
The build fails with an error about a parameter
Read the message: it names the setting or shortcode, and usually the file and line. Most often it is a misspelled shortcode parameter or a path that does not exist. See Configuration.
A setting has no effect
Hugo silently ignores site parameters it doesn’t know, so check the spelling. In TOML, also check where the key sits: every key below a header such as [params.author] belongs to that table, so top-level keys like mainSections go before the first header.
An alert loses its custom title
On a site with CJK line breaks on, Hugo joins the title line and the next line, so the alert shows everything as text under the default title. Put an empty > line after the title:
> [!WARNING] 先备份
>
> 正文从这里开始。See Writing.
--panicOnWarning fails because of protected posts
A production build warns about every protected post until its output is sealed. If every build you deploy runs the seal and verify scripts, silence the warning with ignoreLogs. See Protected posts.
The build fails without network access
Repository cards, YouTube thumbnails and remote images are downloaded at build time. When a download fails, the page falls back and Hugo logs the warning icy-remote-fetch, which --panicOnWarning turns into an error. If your CI may run offline, list that id in ignoreLogs. See Deployment.
How do I update the theme?
Read the changelog, then pull the new version the same way you installed it. See Getting started.
The menu links are missing on phones
When the links don’t fit beside the site name, the header keeps only search and a menu button. The button opens the links in a full-screen panel, with the language and color-scheme choices at its bottom. See Configuration.