aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Berwaldt <zberwaldt@tutamail.com>2023-09-26 23:26:39 -0400
committerZach Berwaldt <zberwaldt@tutamail.com>2023-09-26 23:26:39 -0400
commitf7ccee9be8569eb2efc2319554e49757f550c77f (patch)
treeb6d9ecde2517c662897386157a1571537f50ddd2
parente19ebe26ecd117a77c8fdda2e7667fca42160e1d (diff)
update archetypes
-rw-r--r--archetypes/guide-post.md5
-rw-r--r--archetypes/guide/images/.gitkeep0
-rw-r--r--archetypes/guide/index.md6
-rw-r--r--archetypes/post.md3
-rw-r--r--archetypes/recipe.md7
-rw-r--r--layouts/_default/single.html1
-rw-r--r--layouts/post/single.html11
7 files changed, 32 insertions, 1 deletions
diff --git a/archetypes/guide-post.md b/archetypes/guide-post.md
new file mode 100644
index 0000000..8e4b597
--- /dev/null
+++ b/archetypes/guide-post.md
@@ -0,0 +1,5 @@
1---
2title: "{{ replace .Name "-" " " | title }}"
3date: {{ .Date }}
4draft: true
5--- \ No newline at end of file
diff --git a/archetypes/guide/images/.gitkeep b/archetypes/guide/images/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/archetypes/guide/images/.gitkeep
diff --git a/archetypes/guide/index.md b/archetypes/guide/index.md
new file mode 100644
index 0000000..00e77bd
--- /dev/null
+++ b/archetypes/guide/index.md
@@ -0,0 +1,6 @@
1---
2title: "{{ replace .Name "-" " " | title }}"
3date: {{ .Date }}
4draft: true
5---
6
diff --git a/archetypes/post.md b/archetypes/post.md
new file mode 100644
index 0000000..7b017b9
--- /dev/null
+++ b/archetypes/post.md
@@ -0,0 +1,3 @@
1---
2title: "{{ replace .File.ContentBaseName "-" " " | title }}"
3--- \ No newline at end of file
diff --git a/archetypes/recipe.md b/archetypes/recipe.md
new file mode 100644
index 0000000..051745e
--- /dev/null
+++ b/archetypes/recipe.md
@@ -0,0 +1,7 @@
1---
2title: "{{ replace .Name "-" " " | title }}"
3date: {{ .Date }}
4draft: true
5categories:
6 - Recipes
7--- \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 306df48..db0c449 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,7 +2,6 @@
2 <article> 2 <article>
3 <section> 3 <section>
4 <h1>{{ .Title }}</h1> 4 <h1>{{ .Title }}</h1>
5 <h6>{{ .Date | time.Format ":date_full" }}</h6>
6 </section> 5 </section>
7 <section> 6 <section>
8 {{- .Content -}} 7 {{- .Content -}}
diff --git a/layouts/post/single.html b/layouts/post/single.html
new file mode 100644
index 0000000..306df48
--- /dev/null
+++ b/layouts/post/single.html
@@ -0,0 +1,11 @@
1{{ define "main" }}
2 <article>
3 <section>
4 <h1>{{ .Title }}</h1>
5 <h6>{{ .Date | time.Format ":date_full" }}</h6>
6 </section>
7 <section>
8 {{- .Content -}}
9 </section>
10 </article>
11{{ end }} \ No newline at end of file