Compare commits

...

3 commits

Author SHA1 Message Date
KemoNine 2cb78ff585 cleanup site layout, merge notes and recipes into main list/homepage 2022-12-03 16:27:54 -05:00
KemoNine 19da370c45 add rss feeds 2022-12-03 16:27:10 -05:00
KemoNine ed27aeecd6 content cleanup 2022-12-03 16:26:48 -05:00
7 changed files with 144 additions and 130 deletions

View file

@ -1,60 +1,57 @@
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"
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"
note = "notes"

View file

@ -5,6 +5,9 @@ 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,6 +7,7 @@ date: 2022-12-03
AuthorName: KemoNine
AuthorURL: "https://culinary.kemonine.info"
category: Dinner
cuisine: Italian
tags:
@ -15,8 +16,6 @@ tags:
- Chicken
- Lemon
yield: 4
prepTime:
cookTime:
ingredients:
- cubed chicken
@ -37,6 +36,5 @@ 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,6 +8,8 @@
{{ 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,6 +4,51 @@
{{ 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">
@ -15,44 +60,6 @@
</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 "Section" "recipes") "Title" }}
{{ range sort (where site.RegularPages "Type" "in" site.Params.mainSections) "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,26 +4,31 @@
{{ 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="px2 mt3 clearfix">
<div class="sm-col-8 mx-auto" itemprop="description">{{.Content}}</div>
<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>
<div class="clearfix mt3">
@ -85,6 +90,10 @@
</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">
@ -138,17 +147,10 @@
<!-- end components -->
<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>
{{ if .Params.inspiration }}
<h3 class="blue mt0 mb2 xs-center center">Inspiration & Resources</h3>
{{ range .Params.inspiration }}
<ul>
<ul class="center">
{{ if .url }}
<li><a href="{{ .URL }}">{{ .title }}</a></li>
{{ else }}
@ -158,12 +160,17 @@
{{ end }}
{{ end }}
{{ with .Params.Category }}{{ partial "taxonomy/category" . }}{{ end }}
{{ with .Params.Cuisine }}{{ partial "taxonomy/cuisine" . }}{{ end }}
{{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ 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>
</div>
{{ end }}
</article>
</div>
{{ end }}