Skip to main content

Posts tagged with #GoHugo

Recent Posts (Page 1)

GOHUGO
Hooks

Hooks

This module provides Hooks and filters for GoHugo layouts as an easy way for theme developers to let users add partials and blocks at pre-defined safe places in their themes or modules.

Refactoring Gohugo Aliases

Refactoring Gohugo Aliases

GoHugo’s documentation recently started to show functions and methods with their “real” name, instead of the alias used in the GoHugo codebase. Did you for instance knew that apply is actually collections.Apply and append is collections.Append? Knowing these exact names seems to be important to me, because I think it’s easier to understand what functions are connected and what features are available.

GOHUGO
Sitemap

Sitemap

This is a Hugo theme component with layouts to add a configurable sitemap to your website. Hugo itself has internal templates that add sitemaps, but this component extends this by providing setup options per page and keeping up-to-date with current SEO practices.

Development

Formatters Formatters are dedicated layout files for certain variable types. dnb-hugo offers reusable templates for any structural need (two and three column tables or plain printout) and takes over the markup and styling of the output. The configuration for a single formatter offers the following parameters:

Debugging and Logging to CLI

Debug from your layout file into the CLI/server log Some times we developers want to inform and warn our users, or even throw an error. The debug partial is your connection to the CLI with some more options than GoHugo’s internal error functionality.

Back to top
Back Forward