tune theme to better handle sources/inspiration, cleaner chef (author) zone and some otherwise general cleanup
This commit is contained in:
parent
1b860c955d
commit
729d64ea41
21
themes/gochowdown/archetypes/note-bundle/index.md
Normal file
21
themes/gochowdown/archetypes/note-bundle/index.md
Normal 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 |
|
@ -1,44 +1,36 @@
|
||||||
---
|
---
|
||||||
layout: recipe
|
layout: recipe
|
||||||
|
title: "Template Recipe"
|
||||||
|
image: plate_pic.jpg
|
||||||
|
imagecaption: This is the alt text /and/ image caption. Do **NOT** skip!
|
||||||
date: {{ .Date }}
|
date: {{ .Date }}
|
||||||
draft: true
|
draft: true
|
||||||
title: "{{ replace .Name "-" " " | humanize | title }}" # The title of your awesome recipe
|
|
||||||
image: awesome-recipe-image.jpg # Name of image in recipe bundle
|
AuthorName: KemoNine
|
||||||
imagecredit: https://placekitten.com/600/800 # URL to image source page, website, or creator
|
AuthorURL: "https://culinary.kemonine.info"
|
||||||
YouTubeID: # The F2SYDXV1W1w part of https://www.youtube.com/watch?v=F2SYDXV1W1w
|
inspiration:
|
||||||
authorName: # Name of the recipe/article author
|
- title: This isn't a link
|
||||||
authorURL: # URL of their home website
|
- title: Link text
|
||||||
sourceName: # Name of the source website
|
url: "https://domain.tld"
|
||||||
sourceURL: # Actual URL of the recipe itself
|
category: PickABroadCategeory
|
||||||
category: # The type of meal or course your recipe is about. For example: "dinner", "entree", or "dessert".
|
cuisine: PickABroadType
|
||||||
cuisine: # The region associated with your recipe. For example, "French", Mediterranean", or "American".
|
tags:
|
||||||
tags: # You don't have to have 3, feel free to have 10, 1, or none
|
- tag 1
|
||||||
- tag1
|
- tag 2
|
||||||
- tag2
|
yield: 4
|
||||||
- tag3
|
prepTime: 1 hr 20 mins
|
||||||
yield: 8
|
cookTime: 10 mins
|
||||||
prepTime: 15
|
|
||||||
cookTime: 45
|
|
||||||
|
|
||||||
ingredients:
|
ingredients:
|
||||||
- 1 16 oz. box of something
|
- ingredient 1
|
||||||
- 1 12-ounce can something else
|
- ingredient 2
|
||||||
- 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
|
|
||||||
|
|
||||||
directions:
|
directions:
|
||||||
- Preheat oven to 350˚F/180˚C.
|
- step 1
|
||||||
- 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.
|
- step 2
|
||||||
- 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 40–45 minutes, until the top has nicely browned.
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
- note 1
|
||||||
|
- note 2
|
||||||
|
|
|
@ -5,16 +5,15 @@
|
||||||
|
|
||||||
<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 -->
|
<!-- call up the image and image credit link -->
|
||||||
{{ with .Params.Image }}
|
{{ if .Params.image }}
|
||||||
<div class="xs-p2">
|
<div class="xs-p2 center">
|
||||||
<img itemprop="image" src="{{ . }}" />
|
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
|
||||||
</div>
|
<img itemprop="image" src="{{ .Params.image }}" {{ if .Params.imagecaption }}alt="{{.Params.imagecaption}}"{{ end }} style="max-width:480px"/>
|
||||||
{{ else }}
|
{{ if .Params.imagecaption }}
|
||||||
{{ range first 1 (.Resources.ByType "image") }}
|
<figcaption><p><b>Pictured:</b> {{ .Params.imagecaption }}</p></figcaption>
|
||||||
<div class="xs-p2">
|
|
||||||
<img itemprop="image" src="{{$.Site.BaseURL}}{{ .RelPermalink }}" />
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<article class="post-content px2">
|
<article class="post-content px2">
|
||||||
|
@ -29,34 +28,29 @@
|
||||||
|
|
||||||
<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 }}
|
||||||
|
<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.Category }}{{ partial "taxonomy/notes" . }}{{ end }}
|
||||||
{{ with .Params.Cuisine }}{{ partial "taxonomy/cuisine" . }}{{ end }}
|
|
||||||
{{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ 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>
|
</div>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
|
@ -5,16 +5,15 @@
|
||||||
|
|
||||||
<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 -->
|
<!-- call up the image and image credit link -->
|
||||||
{{ with .Params.Image }}
|
{{ if .Params.image }}
|
||||||
<div class="xs-p2">
|
<div class="xs-p2 center">
|
||||||
<img itemprop="image" src="{{ . }}" />
|
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
|
||||||
</div>
|
<img itemprop="image" src="{{ .Params.image }}" {{ if .Params.imagecaption }}alt="{{.Params.imagecaption}}"{{ end }} style="max-width:480px"/>
|
||||||
{{ else }}
|
{{ if .Params.imagecaption }}
|
||||||
{{ range first 1 (.Resources.ByType "image") }}
|
<figcaption><p><b>Pictured:</b> {{ .Params.imagecaption }}</p></figcaption>
|
||||||
<div class="xs-p2">
|
|
||||||
<img itemprop="image" src="{{$.Site.BaseURL}}{{ .RelPermalink }}" />
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<article class="post-content px2">
|
<article class="post-content px2">
|
||||||
|
@ -139,34 +138,30 @@
|
||||||
<!-- 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 }}
|
||||||
|
<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.Category }}{{ partial "taxonomy/category" . }}{{ end }}
|
||||||
{{ with .Params.Cuisine }}{{ partial "taxonomy/cuisine" . }}{{ end }}
|
{{ with .Params.Cuisine }}{{ partial "taxonomy/cuisine" . }}{{ end }}
|
||||||
{{ with .Params.Tags }}{{ partial "taxonomy/tags" . }}{{ 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>
|
</div>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
Loading…
Reference in a new issue