A theme for Hugo based on the Chowdown theme for Jekyll
$ go install --tags extended
as documented in the Hugo Install Docs.git submodule add https://github.com/seanlane/gochowdown.git themes/gochowdown
.config.toml
or config.yaml
. Default language is English. Read this section to modify the default language.hugo serve
and see the result at http://localhost:1313/
.Similarly to how the original Chowdown theme for Jekyll was organized, this theme adds two sections, recipes and components. The primary section you'll want to use is the recipes, as they form the panel listing on the front page, as well as most of the content. The components section is for recipes that form subcomponents of a recipe, allowing for a recipe to call on several components, and different recipes to reuse the same component, if desired.
Note that this is a work in progress, so things may be broken or change in the future. Feel free to contribute or offer suggestions.
hugo new --kind recipe-bundle recipes/name-of-your-new-recipe-here
, replacing name-of-your-new-recipe-here
with the name of your recipehugo new --kind recipe-bundle recipes/hot-dog
, I would find a new folder at content/recipes/hot-dog
, and the title within the index.md
file in that folder would be Hot Dog
.Similar to above, but instead of adding the recipes to the content/recipes
directory, add the individual components to the content/components
directory. Then add a new recipe as you normally would, and replace the instructions list with a components list, using the title (aka name) of the recipe, and modify the directions section as needed.
You can change GoChowdown default language in your Hugo configuration. This will translate all text built into the theme. Currently supported languages are: en
(default), de
, fr
.
The following is a config.toml
example for using fr
as the default language:
defaultContentLanguage = "fr"
[languages]
[languages.fr]
weight = 1
title = "Mon titre en Français"
Coder is licensed under the MIT license.