Browse Source

Add theme components for recipe posts

Bee Hudson 1 year ago
parent
commit
fe979cef8a
2 changed files with 34 additions and 0 deletions
  1. 20 0
      archetypes/recipes.md
  2. 14 0
      layouts/recipes/single.html

+ 20 - 0
archetypes/recipes.md

@@ -0,0 +1,20 @@
+---
+title: "{{ replace .Name "-" " " | title }}"
+date: {{ .Date }}
+draft: true
+description: ""
+intro: ""
+tags: [ "recipe", "family recipes" ]
+---
+
+## Ingredients
+
+* 
+
+## Special Equipment
+
+* 
+
+## Steps
+
+1. 

+ 14 - 0
layouts/recipes/single.html

@@ -0,0 +1,14 @@
+
+{{ define "main" }}
+<article class="panel flex-1 blog-post h-entry">
+	<h1 class="blog-post--title p-name"><a href="{{ .RelPermalink }}" class="u-url text-black no-underline">{{ .Title }}</a></h1>
+	<div class="blog-post--body e-content">
+		{{ .Content }}
+	</div>
+	<div class="blog-post--footer">
+		<div class="blog-post--author">Author: <span class="p-author h-card"><a href="{{ .Site.BaseURL }}" rel="author">{{ .Site.Params.Author }}</a></span></div>
+		<div class="blog-post--updated">Written: <span class="dt-published">{{ .PublishDate.Format "Jan 2, 2006" }}</span></div>
+		<div class="blog-post--updated">Updated: <span class="dt-updated">{{ .Lastmod.Format "Jan 2, 2006" }}</span></div>
+	</div>
+</article>
+{{ end }}