Hugo

Github Action to Create New Content in Hugo

In posts On

This is what it looks like
This is what it looks like

I use Hugo a lot for my web development work, and I think it is pretty great. The one problem with it for many non-technical people I work with is that there is no CMS feature, they want a website administration page where they can do the usual. There are some open source headless CMS systems built for Hugo out there, but I have not had the chance to explore them yet and I don’t like throwing a client on new software just to decide I don’t like it in a few months, so I wanted to do something automated, but avoid having to install vscode, git, ssh-keys and etc in order to make simple edits I decided to do something with GitHub actions.

Styling a RSS feed With XSL

In posts On

A styled RSS feed makes your site more usable

When you put a link to your rss / atom feed on your website it is a link to a raw xml file designed for feed readers such as feedly to import them and provide the reader with all their internet in one place.

Pines Image Gallery With Hugo

In posts On

A super simple alpinjs image gallery

The first place I used this is on the recipe page about my mom’s family recipe cookbook

Adding Leaflet to Ryder Theme

In posts On

I made this quick and easy shortcode to get started using leaflet.js in the Ryder Theme for Hugo Websites, as I add more features supported by leaflet to the shortcode I might update this page.

Recipe Template for Ryder Theme

In posts On

Optimize Recipe Content with the Schema

The recipe templates for The Ryder Theme for Hugo websites are progressing well. Today I released an update that creates the schema.org json-ld specification tags for a recipe. This allows your recipe content to show up as “rich content” in search engines and social media platforms.

Tag Cloud

In posts On

Cloudy days a hoy-hoy

I found this partial to create a tag cloud on Mert Bakir’s personal website and I have been adapting the code to suit my needs for this project, for now I’m just leaving it under this project page until I can decide what to do with it.

Ingredients Section

In posts On

Check out the new Ingredients Taxonomy pages

Using Taxonomy effectively

As part of the recipe template configuration being developed for The Ryder Theme for Hugo websites, a new taxonomy is created for ingredients. Ingredients are not the same as recipeIngredients; they are defined as an array in the front matter. I didn’t want a taxonomy page generated for every single recipe ingredient, so I created a separate variable. The recipeIngredients are used to display the ingredients on the page and for the recipe schema, ensuring the pages are properly displayed as recipe rich results in Google and other search engines.

Home Feed Filtering and Colorization

In posts On

Limit your home page feed by Section, Category or Tag

You can now set params in your hugo.toml file to keep any pesky pages off your homepage that you may not wish to promote for whatever reason.

The Ryder Theme for Hugo

In projects On

In honor of this old guy
In honor of this old guy

Introducing the Ryder theme, a theme for the hugo static website generator. This is an open-source Hugo theme boasting Tailwind CSS, FontAwesome integration, and customizable features. Perfect for beginners and seasoned developers alike, kickstart your website with this versatile theme.

Link Graveyard

In posts On

Where I bury my favorite resources

Hugo Snippets

In posts On

Get the first of something in a collection

For example the first jpg image in the current directory starting with the word feature.

Content Adaptors

In projects On

Content Adaptors come to Hugo!

A long anticipated release has come to the hugo static site generator that will be a real game changer. This is part of release v0.126.0. The new feature, called Content Adaptors allows you to generate static pages in your public directory at build time from a remote resource, such as an api.

Hugo Helpers

In posts On

Here are some useful partials I use in this theme.

layouts/_default/_markup/render-image.html

This replaces the default markup template for rendering an image when the markdown code ![Alt Text](/path/to/img.jpg) is used. It calls another partial you have to add to your theme or layout directory in your site called ImageConverter.