Compare commits

..

No commits in common. "2cb78ff5854e2f8d4cbb767fddfbdca2df4aa035" and "c83c102b146751c06e6e3ae034f9e7aa979ac5ac" have entirely different histories.

7 changed files with 130 additions and 144 deletions

View file

@ -1,57 +1,60 @@
baseURL = "https://culinary.kemonine.info"
disablePathToLower = false
languageCode = "en-us"
title = "KemoNine's Culinary Notebook"
theme = "gochowdown"
defaultcontentlanguage = "en"
paginate = 20
canonifyurls = true
pygmentsstyle = "monokai"
pygmentscodefences = true
pygmentscodefencesguesssyntax = true
pygmentsOptions = "linenos=table"
[permalinks]
recipes = "/recipes/:title"
notes = "/notes/:title"
[outputs]
home = ["HTML", "RSS", "JSON"]
[params]
author = "KemoNine"
description = "a confused culinary notebook"
keywords = "recipes"
favicon_32 = "/images/favicon-32x32.png"
favicon_16 = "/images/favicon-16x16.png"
hidecredits = false
hidecopyright = false
showNavTitle = true
custom_css = [ "style.css" ]
mainSections = ["recipe", "recipes", "note", "notes"]
[[menu.main]]
name = "By Category"
weight = 20
url = "/category/"
[[menu.main]]
name = "By Cuisine"
weight = 30
url = "/cuisine/"
[[menu.main]]
name = "By Tag"
weight = 40
url = "/tags/"
[[menu.main]]
name = "Notes"
weight = 99
url = "/notes/"
[taxonomies]
category = "category"
cuisine = "cuisine"
tag = "tags"
baseURL = "https://culinary.kemonine.info"
disablePathToLower = false
languageCode = "en-us"
title = "KemoNine's Culinary Notebook"
theme = "gochowdown"
defaultcontentlanguage = "en"
paginate = 20
canonifyurls = true
pygmentsstyle = "monokai"
pygmentscodefences = true
pygmentscodefencesguesssyntax = true
pygmentsOptions = "linenos=table"
[permalinks]
posts = "/posts/:year/:month/:title"
[outputs]
home = ["HTML", "RSS", "JSON"]
[params]
author = "KemoNine"
description = "a confused culinary notebook"
keywords = "recipes"
favicon_32 = "/images/favicon-32x32.png"
favicon_16 = "/images/favicon-16x16.png"
hidecredits = false
hidecopyright = false
showNavTitle = true
custom_css = [ "style.css" ]
#[[menu.main]]
#name = "Home"
#weight = 1
#url = "/"
[[menu.main]]
name = "By Category"
weight = 20
url = "/category/"
[[menu.main]]
name = "By Cuisine"
weight = 30
url = "/cuisine/"
[[menu.main]]
name = "By Tag"
weight = 40
url = "/tags/"
[[menu.main]]
name = "Notes"
weight = 99
url = "/notes/"
[taxonomies]
category = "category"
cuisine = "cuisine"
tag = "tags"
note = "notes"

View file

@ -5,9 +5,6 @@ image: noun-fire-962988.png
imagecaption: "A black and white flame illustrating how hot peppers can be"
date: 2022-12-03
AuthorName: KemoNine
AuthorURL: "https://culinary.kemonine.info"
notes:
- Information
- Heat

View file

@ -7,7 +7,6 @@ date: 2022-12-03
AuthorName: KemoNine
AuthorURL: "https://culinary.kemonine.info"
category: Dinner
cuisine: Italian
tags:
@ -16,6 +15,8 @@ tags:
- Chicken
- Lemon
yield: 4
prepTime:
cookTime:
ingredients:
- cubed chicken
@ -36,5 +37,6 @@ directions:
---
## Notes
- spices are a must
- break pasta in half or quarters prior to cooking to make the mixing of everything at the end easier

View file

@ -8,8 +8,6 @@
{{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}">{{ end }}
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
<link rel="alternate" href="{{ "index.xml" | absLangURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
<link rel="canonical" href="{{ .Permalink }}">
<link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css" integrity="sha384-M86HUGbBFILBBZ9ykMAbT3nVb0+2C7yZlF8X2CiKNpDOQjKroMJqIeGZ/Le8N2Qp" crossorigin="anonymous" />

View file

@ -4,51 +4,6 @@
{{ define "content" }}
<div class="container" itemscope itemtype="http://schema.org/Recipe">
<!-- call up the image and image credit link -->
<article class="post-content px2">
<!-- call up the main recipe title and content -->
<header class="post-header">
<h1 class="post-title center m1 sm-mt3" itemprop="name">{{ .Title }}</h1>
</header>
<div class="recipe-source">
<div class="clearfix mt3">
Chef:
{{if .Params.authorurl }}
<a href="{{.Params.authorurl}}">{{.Params.AuthorName}}</a>
{{else}}
{{.Params.AuthorName}}
{{end}}
</div>
</div>
{{ with .Params.Category }}{{ partial "taxonomy/notes" . }}{{ end }}
{{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }}
</div>
<div class="px2 mt3 clearfix">
<div class="sm-col-8 mx-auto" itemprop="description">{{.Content}}</div>
</div>
<br />
{{ if .Params.inspiration }}
<div class="px2 mt3 clearfix"><div class="sm-col-8 mx-auto" itemprop="description">
<h3 class="blue mt0 mb2 xs-center">Inspiration & Resources</h3>
{{ range .Params.inspiration }}
<ul class="recipe-source">
{{ if .url }}
<li><a href="{{ .URL }}">{{ .title }}</a></li>
{{ else }}
<li>{{ .title }}</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
</div></div>
</div>
<!-- call up the image and image credit link -->
{{ if .Params.image }}
<div class="xs-p2 center">
@ -60,6 +15,44 @@
</figure>
</div>
{{ end }}
<article class="post-content px2">
<!-- call up the main recipe title and content -->
<header class="post-header">
<h1 class="post-title center m1 sm-mt3" itemprop="name">{{ .Title }}</h1>
</header>
<div class="px2 mt3 clearfix">
<div class="sm-col-8 mx-auto" itemprop="description">{{.Content}}</div>
</div>
<br />
<div class="recipe-source">
<p>Chef:
{{if .Params.authorurl }}
<a href="{{.Params.authorurl}}">{{.Params.AuthorName}}</a>
{{else}}
{{.Params.AuthorName}}
{{end}}
{{ if .Params.inspiration }}
<p>Inspiration & Resources</p>
{{ range .Params.inspiration }}
<ul>
{{ if .url }}
<li><a href="{{ .URL }}">{{ .title }}</a></li>
{{ else }}
<li>{{ .title }}</li>
{{ end }}
</ul>
{{ end }}
{{ end }}
{{ with .Params.Category }}{{ partial "taxonomy/notes" . }}{{ end }}
{{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }}
</div>
</article>
</div>
{{ end }}

View file

@ -1,7 +1,7 @@
<div class="home">
<div class="recipes xs-px1 xs-mt2">
<div class="clearfix">
{{ range sort (where site.RegularPages "Type" "in" site.Params.mainSections) "Title" }}
{{ range sort (where .Site.RegularPages "Section" "recipes") "Title" }}
<div class="sm-col sm-col-6 md-col-6 lg-col-4 xs-px1 xs-mb2">
<a class="block relative bg-blue" href="{{ .RelPermalink }}">
{{ if .Params.Image }}

View file

@ -4,31 +4,26 @@
{{ define "content" }}
<div class="container" itemscope itemtype="http://schema.org/Recipe">
<!-- call up the image and image credit link -->
{{ if .Params.image }}
<div class="xs-p2 center">
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
<img itemprop="image" src="{{ .Params.image }}" {{ if .Params.imagecaption }}alt="{{.Params.imagecaption}}"{{ end }} style="max-width:480px"/>
{{ if .Params.imagecaption }}
<figcaption><p><b>Pictured:</b> {{ .Params.imagecaption }}</p></figcaption>
{{ end }}
</figure>
</div>
{{ end }}
<article class="post-content px2">
<!-- call up the main recipe title and content -->
<header class="post-header">
<h1 class="post-title center m1 sm-mt3" itemprop="name">{{ .Title }}</h1>
</header>
<div class="recipe-source">
<div class="clearfix mt3">
<div class="sm-col sm-col-3">
Chef:
{{if .Params.authorurl }}
<a href="{{.Params.authorurl}}">{{.Params.AuthorName}}</a>
{{else}}
{{.Params.AuthorName}}
{{end}}
</div>
<div class="sm-col sm-col-3">
{{ with .Params.Category }}{{ partial "taxonomy/category" . }}{{ end }}
</div>
<div class="sm-col sm-col-3">
{{ with .Params.Cuisine }}{{ partial "taxonomy/cuisine" . }}{{ end }}
</div>
</div>
{{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }}
<div class="px2 mt3 clearfix">
<div class="sm-col-8 mx-auto" itemprop="description">{{.Content}}</div>
</div>
<div class="clearfix mt3">
@ -90,10 +85,6 @@
</div>
<!-- end recipe and directions -->
<div class="px2 mt3 clearfix">
<div class="sm-col-8 mx-auto" itemprop="description">{{.Content}}</div>
</div>
<!-- check if it's a component-based recipe, render it -->
{{ with .Params.Components }}
<div class="components bg-darken-2 p2 mt3 mb3 center">
@ -147,10 +138,17 @@
<!-- end components -->
<br />
{{ if .Params.inspiration }}
<h3 class="blue mt0 mb2 xs-center center">Inspiration & Resources</h3>
<div class="recipe-source">
<p>Chef:
{{if .Params.authorurl }}
<a href="{{.Params.authorurl}}">{{.Params.AuthorName}}</a>
{{else}}
{{.Params.AuthorName}}
{{end}}
{{ if .Params.inspiration }}
<p>Inspiration & Resources</p>
{{ range .Params.inspiration }}
<ul class="center">
<ul>
{{ if .url }}
<li><a href="{{ .URL }}">{{ .title }}</a></li>
{{ else }}
@ -160,17 +158,12 @@
{{ end }}
{{ end }}
<!-- call up the image and image credit link -->
{{ if .Params.image }}
<div class="xs-p2 center">
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
<img itemprop="image" src="{{ .Params.image }}" {{ if .Params.imagecaption }}alt="{{.Params.imagecaption}}"{{ end }} style="max-width:480px"/>
{{ if .Params.imagecaption }}
<figcaption><p><b>Pictured:</b> {{ .Params.imagecaption }}</p></figcaption>
{{ end }}
</figure>
{{ with .Params.Category }}{{ partial "taxonomy/category" . }}{{ end }}
{{ with .Params.Cuisine }}{{ partial "taxonomy/cuisine" . }}{{ end }}
{{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }}
</div>
{{ end }}
</article>
</div>
{{ end }}