joshjcarrier / hugo-sabrina

A Hugo theme for mom's cook books and recipe collections.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sabrina

A theme for Hugo based on the simple, organic feel of a mother's cook book.

Quick Start

  1. Install Hugo with your favorite package manager, or follow their Installation Guide
  2. Add the repository into your Hugo Project repository as a submodule, git submodule add https://github.com/joshjcarrier/hugo-sabrina.git themes/sabrina.
  3. Configure your config.toml or config.yaml with theme named "sabrina".
  4. Build your site with hugo serve and see the result at http://localhost:1313/.

Recipe

Create .md files in content/. Images go in static/.

---
layout: recipe
title: My recipe
subtitle: Sour, spicy and sweet pickled vegetable appetizer
image:
date:

authorName:
authorURL:
sourceName: My cookbook
sourceLocation: 43
sourceIMG: /images/cookbook/my-recipe.jpg
category: Appetizers
cuisine: American
tags:
  - Sour
  - Spicy
  - Sweet
  - Pickled
yield:
prepTime:
cookTime:
subcomponents:
  - title: Optional
    ingredients:
      - One
      - Two
    directions:
      - One
      - Two
  - title: More
    ingredients:
      - One
      - Two (optional)

ingredients:
  - One
  - Two
  - Three

directions:
  - Firstly,
  - Secondly,
---

Glossary

Edit data/glossary.yml

- title: Something foreign
  translation: Something understandable
- title: Something else foreign
  translation: Something else understandable

Enabling search

  • Add a file in content/search.html
---
title: "Search"
sitemap:
  priority: 0.1
layout: "search"
---

License

About

A Hugo theme for mom's cook books and recipe collections.

License:MIT License


Languages

Language:HTML 84.1%Language:CSS 15.9%