Building a Cookery Blog with Bulma Clean Theme

Published: Mar 25, 2021 by C.S. Rhymes

Version 0.11 of Bulma Clean Theme has a new recipe layout you can use in your posts or pages. This post will explain how to use the new layout and build your very own cookery blog.

To make it as easy as possible to create a recipe page, the recipe is generated from page’s front matter. This means that you only have to enter the information once and it will be used to create the page content, but it will also be used to generate recipe schema data for the recipe to help your site show up in search engines for recipe searches.

If you add any additional content to the page, such as the story behind the recipe, it will appear below the recipe details.

Start by using the recipe layout in your page or blog post’s front matter and add a title and an image

layout: recipe
title: My recipe title
image: /path/to/recipe-image.jpg
hero_image: /path/to/recipe-hero-image.jpg

Then create a list in the front matter for the ingredients:

ingredients:
    - 1tsp vegetable oil
    - 2 Carrots, finely diced
    - 1 Onion, finely diced

Next add the method steps:

method:
    - Heat the vegetable oil in a large pan on a medium heat, then add the carrots, onion and celery and cook for five to ten minutes to soften, stirring occasionally
    - Add the crushed garlic and cook for 2 more minutes, stiffing occasionally

Then specify the additional information about your recipe, such as the prep time, cook time, keywords, etc. The times need to be in a specific format for the recipe schema which uses ISO 8601, basically P for period, T for time, 1H for one hour and 1M for one minute.

prep_time: PT0H10M
cook_time: PT1H
total_time: PT1H10M
keywords: recipe,cooking
recipe_yield: 4
recipe_category: Main course
recipe_cuisine: Italian
calories: 500 calories

When you build the page, this data will be inserted into the recipe template and the schema will be generated in the background.

More information and an example page can be found on the Bulma Clean Theme demo site.

Have fun and enjoy building your cookery blog!

Photo by Janko Ferlic from StockSnap

bulma blogging cookery recipes

Share

Latest Posts

Using prettier to format your Jekyll theme
Using prettier to format your Jekyll theme

I have been using prettier for a few years to automatically format code, especially JavaScript and TypeScript projects, as it helps standardise the output on a shared code project. I have maintained a few different Jekyll themes over the years and wanted to use the power of prettier to automatically format code consistently.

First impressions of React Native as a Web Developer
First impressions of React Native as a Web Developer

I decided to try out React Native to build a native app and see how it works. I’m an experienced web developer but have limited knowledge of apps. I helped build an app using Apache Cordova and PhoneGap many (many) years ago and also worked on another app using the ionic framework a few years later. If I’m honest I can’t really remember how they worked as it was so long ago, so it was kind of like starting fresh for me.

Querying Laravel Eloquent's Many to Many relationships
Querying Laravel Eloquent's Many to Many relationships

A while ago I wrote about how to use a many to many relationship in Laravel, (all the way back in April 2019). Now I want to build on this example and show how you can query many to many relationships, but also how you can add additional constraints to the query to further filter your results.

How NOT to make a website

How NOT to make a Website

By C.S. Rhymes

From £2.49

Nigel's Intranet Adventure

Nigel's Intranet Adventure

By C.S. Rhymes

From £0.99