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.

GOHUGO
Devtools

Devtools

This is a GoHugo theme component loading all of David’s Neighbour’s GoHugo development modules at once. It will currently load hugo-debug, hugo-functions, and hugo-hooks.

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.

Carefully implemented forms

Reusable Gohugo Forms via Configuration

A while back (pre-COVID-19 era), I had the idea to create a GoHugo module that would allow me to create forms via configuration files. I also wanted to easily translate the form into different languages. I sketched out a solution but never got around to implementing it.

GOHUGO
Pictures

Pictures

This component for GoHugo adds partials and shortcodes to resolve and process images on your website. It offers responsive image formats and optimised loading based on current browser abilities. The simplest way is to use this module as a drop-in. Just install it and forget you ever did.

GOHUGO
Head

Head

This is a GoHugo theme component that solves the old question “What tags belong into the <head> tag of my website?” Set it up, configure it, forget it’s there. This component adds a multitude of tags and is extensively configurable.

Back to top
Back Forward