tune theme to better handle sources/inspiration, cleaner chef (author) zone and some otherwise general cleanup

This commit is contained in:
KemoNine 2022-12-03 15:26:33 -05:00
parent 1b860c955d
commit 729d64ea41
5 changed files with 105 additions and 103 deletions

View File

@ -0,0 +1,21 @@
---
layout: notes
title: "Template Note"
image: plate_pic.jpg
imagecaption: This is the alt text /and/ image caption. Do **NOT** skip!
date: 2022-12-03
AuthorName: KemoNine
AuthorURL: "https://culinary.kemonine.info"
inspiration:
- title: This isn't a link
- title: Link text
url: "https://domain.tld"
notes:
- tag 1
- tag 2
tags:
- tag 1
- tag 2
---

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

View File

@ -1,44 +1,36 @@
---
layout: recipe
title: "Template Recipe"
image: plate_pic.jpg
imagecaption: This is the alt text /and/ image caption. Do **NOT** skip!
date: {{ .Date }}
draft: true
title: "{{ replace .Name "-" " " | humanize | title }}" # The title of your awesome recipe
image: awesome-recipe-image.jpg # Name of image in recipe bundle
imagecredit: https://placekitten.com/600/800 # URL to image source page, website, or creator
YouTubeID: # The F2SYDXV1W1w part of https://www.youtube.com/watch?v=F2SYDXV1W1w
authorName: # Name of the recipe/article author
authorURL: # URL of their home website
sourceName: # Name of the source website
sourceURL: # Actual URL of the recipe itself
category: # The type of meal or course your recipe is about. For example: "dinner", "entree", or "dessert".
cuisine: # The region associated with your recipe. For example, "French", Mediterranean", or "American".
tags: # You don't have to have 3, feel free to have 10, 1, or none
- tag1
- tag2
- tag3
yield: 8
prepTime: 15
cookTime: 45
AuthorName: KemoNine
AuthorURL: "https://culinary.kemonine.info"
inspiration:
- title: This isn't a link
- title: Link text
url: "https://domain.tld"
category: PickABroadCategeory
cuisine: PickABroadType
tags:
- tag 1
- tag 2
yield: 4
prepTime: 1 hr 20 mins
cookTime: 10 mins
ingredients:
- 1 16 oz. box of something
- 1 12-ounce can something else
- 3 eggs
- 1/2 cup unsalted butter
- 2 cups cheddar cheese, shredded and divided
- 1 cup mozzarella cheese, shredded
- 2 tablespoons feta cheese, crumbled
- 1 cup provolone cheese, cut into small pieces
- 1/2 cup smoked Gouda cheese, shredded
- 4 teaspoons salt, divided
- 2 teaspoons black pepper
- ingredient 1
- ingredient 2
directions:
- Preheat oven to 350˚F/180˚C.
- In a large pot or dutch oven, cook macaroni according to package directions, salting the water with 2 teaspoons of salt. Drain and return to the warm pot.
- Add butter to warm macaroni and mix until melted. Season with the remaining salt and pepper.
- Add 1 cup of cheddar, mozzarella, provolone, Gouda, and feta cheese. Mix well.
- Add eggs and evaporated milk, mix until fully incorporated.
- Transfer to a 9x13-inch baking dish and top with the remaining cheddar cheese.
- Bake in a preheated oven for 4045 minutes, until the top has nicely browned.
- step 1
- step 2
---
## Notes
- note 1
- note 2

View File

@ -5,16 +5,15 @@
<div class="container" itemscope itemtype="http://schema.org/Recipe">
<!-- call up the image and image credit link -->
{{ with .Params.Image }}
<div class="xs-p2">
<img itemprop="image" src="{{ . }}" />
{{ 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>
{{ else }}
{{ range first 1 (.Resources.ByType "image") }}
<div class="xs-p2">
<img itemprop="image" src="{{$.Site.BaseURL}}{{ .RelPermalink }}" />
</div>
{{ end }}
{{ end }}
<article class="post-content px2">
@ -29,34 +28,29 @@
<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.Cuisine }}{{ partial "taxonomy/cuisine" . }}{{ end }}
{{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }}
<div class="recipe-source">
{{ if (or .Params.SourceName .Params.AuthorName) }}
{{ i18n "inspired" }}
{{ end }}
{{ with .Params.SourceName }}
{{$name := .}}
{{ i18n "by" }}
{{with $.Params.SourceURL }}
<a href="{{.}}">{{$name}}</a>
{{else}}
{{$name}}
{{end}}
{{ end }}
{{with .Params.AuthorName}}
{{$name := .}}
{{ i18n "from" }}
{{with $.Params.AuthorURL }}
<a href="{{.}}">{{$name}}</a>
{{else}}
{{$name}}
{{end}}
{{end}}
</div>
</article>

View File

@ -5,16 +5,15 @@
<div class="container" itemscope itemtype="http://schema.org/Recipe">
<!-- call up the image and image credit link -->
{{ with .Params.Image }}
<div class="xs-p2">
<img itemprop="image" src="{{ . }}" />
{{ 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>
{{ else }}
{{ range first 1 (.Resources.ByType "image") }}
<div class="xs-p2">
<img itemprop="image" src="{{$.Site.BaseURL}}{{ .RelPermalink }}" />
</div>
{{ end }}
{{ end }}
<article class="post-content px2">
@ -139,36 +138,32 @@
<!-- 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>
{{ 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/category" . }}{{ end }}
{{ with .Params.Cuisine }}{{ partial "taxonomy/cuisine" . }}{{ end }}
{{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ end }}
<div class="recipe-source">
{{ if (or .Params.SourceName .Params.AuthorName) }}
{{ i18n "inspired" }}
{{ end }}
{{ with .Params.SourceName }}
{{$name := .}}
{{ i18n "by" }}
{{with $.Params.SourceURL }}
<a href="{{.}}">{{$name}}</a>
{{else}}
{{$name}}
{{end}}
{{ end }}
{{with .Params.AuthorName}}
{{$name := .}}
{{ i18n "from" }}
{{with $.Params.AuthorURL }}
<a href="{{.}}">{{$name}}</a>
{{else}}
{{$name}}
{{end}}
{{end}}
</div>
</article>
</div>
{{ end }}