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

@ -12,7 +12,8 @@ pygmentscodefencesguesssyntax = true
pygmentsOptions = "linenos=table" pygmentsOptions = "linenos=table"
[permalinks] [permalinks]
posts = "/posts/:year/:month/:title" recipes = "/recipes/:title"
notes = "/notes/:title"
[outputs] [outputs]
home = ["HTML", "RSS", "JSON"] home = ["HTML", "RSS", "JSON"]
@ -27,11 +28,7 @@ hidecredits = false
hidecopyright = false hidecopyright = false
showNavTitle = true showNavTitle = true
custom_css = [ "style.css" ] custom_css = [ "style.css" ]
mainSections = ["recipe", "recipes", "note", "notes"]
#[[menu.main]]
#name = "Home"
#weight = 1
#url = "/"
[[menu.main]] [[menu.main]]
name = "By Category" name = "By Category"

View file

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

View file

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

View file

@ -9,6 +9,8 @@
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title> <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="canonical" href="{{ .Permalink }}">
<link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css" integrity="sha384-M86HUGbBFILBBZ9ykMAbT3nVb0+2C7yZlF8X2CiKNpDOQjKroMJqIeGZ/Le8N2Qp" crossorigin="anonymous" /> <link rel="stylesheet" href="https://unpkg.com/normalize.css@8.0.1/normalize.css" integrity="sha384-M86HUGbBFILBBZ9ykMAbT3nVb0+2C7yZlF8X2CiKNpDOQjKroMJqIeGZ/Le8N2Qp" crossorigin="anonymous" />
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous"> <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">

View file

@ -4,6 +4,51 @@
{{ define "content" }} {{ define "content" }}
<div class="container" itemscope itemtype="http://schema.org/Recipe"> <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 --> <!-- call up the image and image credit link -->
{{ if .Params.image }} {{ if .Params.image }}
<div class="xs-p2 center"> <div class="xs-p2 center">
@ -15,44 +60,6 @@
</figure> </figure>
</div> </div>
{{ end }} {{ 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> </article>
</div> </div>
{{ end }} {{ end }}

View file

@ -1,7 +1,7 @@
<div class="home"> <div class="home">
<div class="recipes xs-px1 xs-mt2"> <div class="recipes xs-px1 xs-mt2">
<div class="clearfix"> <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"> <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 }}"> <a class="block relative bg-blue" href="{{ .RelPermalink }}">
{{ if .Params.Image }} {{ if .Params.Image }}

View file

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