Decoupling Site Content: Using Hugo Data Templates for Structured Lists
Stop repeating lists in your Markdown. Learn how to use Hugo Data Templates to decouple structured content from your layouts for easier site-wide maintenance.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Stop repeating lists in your Markdown. Learn how to use Hugo Data Templates to decouple structured content from your layouts for easier site-wide maintenance.
Learn how to add a custom taxonomy in Hugo—such as a 'series' grouping—by configuring the site, tagging content, and verifying the generated term pages.
Learn how Hugo Pipes compiles SCSS, minifies JavaScript and adds content‑based hashes to filenames so browsers cache assets safely without manual versioning.
Hugo Page Bundles plus built-in Resize/Fit image processing give you responsive srcset images with no external pipeline. Here's the render-hook setup, the caching trick, and the trade-offs.
Hugo's resources.GetRemote caches fetched content in the cache directory so subsequent calls reuse the cached file and avoid duplicate writes. When a transient failure occurs, Hugo retries the request up to three times internally, but the retry count is not configurable via the command line. The Force flag available on resources.GetRemote bypasses the cache
Our Hugo site is growing, and we keep hitting the same fork in the road: some features only work with the extended binary. SCSS compilation through Hugo Pipes ( resources.ToCSS ) requires the embedded Sass transpiler that ships only in the extended edition, and WebP encoding in the image pipeline is documented as extended-only as well (standard builds can de
Hugo uses the timeZone parameter in the site configuration to define the target time zone for date rendering. While this global setting typically governs how .Date is processed in templates, the interaction between front matter offsets and this configuration can create inconsistencies. When a content file specifies a date in RFC 3339 format with an explicit
Hugo Pipes provides a pipeline for processing assets, including fingerprinting and minification, to optimize static delivery. When the minify function is applied to a resource, it expects the source content to adhere to valid syntax for the target language (such as CSS or JS). If a source asset contains syntax errors or incompatible characters, the minificat