This repository is a collection of recipes I want to file away in a searchable/taggable way.
hugo- converts the pages in thecontentfolder into a working website.paper-mod- the theme used by hugo. It is referrenced via agit submoduleunder./themes.- GitHub Actions - to build the branch, and push it to the
gh-pagesbranch. - GitHub Pages - to host the static website. The site served is from the
gh-pagesbranch.
- You have some familiarity with
git. Specifically how to clone, checkout, push, pull and commit code. - A copy of
hugo. Although it is not required, it will allow you to test your changes locally before pushing. - A text editor to contribute and edit markdown files.
## Clone the repository
git clone https://github.com/dharmeshgordhan/recipelibrary.git
## Clone the git submodule
git submodule update --init --recursive
## Run a dev server locally
hugo server -D
- create a branch
- create a new page with
hugo new recipe/{recipe-file-name}.md - input your recipe as markdown
- use the shortcode
{{<c>}}to add a checkbox in front of each ingredients list item - add relevant tags
- test your build works:
hugo server -D - commit
- push your code change
- raise a pull request
- it'll automatically build and deploy to the
gh-pagesbranch when merged via GitHub action