THE GITHTML FIELD GUIDE
Check what a Hugo shortcode adds to the generated document
Inspect the HTML produced by each Hugo shortcode rather than judging portability from the short source invocation. A shortcode can expand into plain text, local markup, remote embeds, or script-dependent content. Keep essential information in a readable fallback and verify the generated output under the settings and connection conditions the intended reader will actually use.
Inventory shortcode behavior by purpose
List the shortcodes used by the page and identify which are embedded, theme-provided, or custom. Read the relevant implementation or documentation to understand what each generates. A video invocation and a simple figure invocation have different dependencies even if both occupy one line in the Markdown source. Mark which shortcodes carry essential information and which are decorative. Do not infer that a static-site generator makes every feature self-contained. Static generation describes when markup is produced, not whether the resulting page depends on remote services, JavaScript, or separately distributed assets.
Inspect a representative generated fixture
Create a small page using the important shortcodes with safe sample content and build it locally. Search the generated HTML for the visible text, resource references, and embedded elements you expect. The checklist below focuses the inspection without assuming a particular theme's syntax. Confirm that parameters are correctly escaped and that user-provided values do not create unexpected output. For an unfamiliar custom shortcode, review its template as project code before running the build. Compare the output with and without optional parameters so you can see whether a seemingly minor source choice introduces a new resource or runtime dependency.
Shortcode output review
- Visible information produced:
- Local assets referenced:
- Remote requests required:
- Script dependency:
- Text fallback:
- Verified reader conditions:Provide a useful fallback for the actual reader
If a shortcode embeds a remote demonstration, include a concise explanation of its lesson and a link identifying the original resource. If it renders a diagram dynamically, consider an approved static representation with an adjacent description for the reading copy. Test the exact generated document with the reader's expected script and network settings rather than recommending indiscriminate enabling. Keep the fallback synchronized with the embedded content when it changes. For a site, preserve the required resource directory; for a portable document, verify a separate export. A shortcode's convenience for authors should not obscure the dependency contract handed to readers. Keep a representative fixture for each custom shortcode in the project's review materials. Theme updates can change generated dependencies even when the Markdown invocation itself has not changed.
- Inventory shortcodes and identify their implementation source and essential purpose.
- Build a safe fixture and inspect the actual HTML expansion.
- Record remote, script, and separate-file dependencies for each important output.
- Add meaningful fallback text and test the exact distribution artifact under expected reader settings.
Sources and further reading
AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.