From f7ccee9be8569eb2efc2319554e49757f550c77f Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Tue, 26 Sep 2023 23:26:39 -0400 Subject: update archetypes --- archetypes/guide-post.md | 5 +++++ archetypes/guide/images/.gitkeep | 0 archetypes/guide/index.md | 6 ++++++ archetypes/post.md | 3 +++ archetypes/recipe.md | 7 +++++++ layouts/_default/single.html | 1 - layouts/post/single.html | 11 +++++++++++ 7 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 archetypes/guide-post.md create mode 100644 archetypes/guide/images/.gitkeep create mode 100644 archetypes/guide/index.md create mode 100644 archetypes/post.md create mode 100644 archetypes/recipe.md create mode 100644 layouts/post/single.html 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 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- \ 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 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 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + 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 @@ +--- +title: "{{ replace .File.ContentBaseName "-" " " | title }}" +--- \ 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 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +categories: + - Recipes +--- \ 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 @@

{{ .Title }}

-
{{ .Date | time.Format ":date_full" }}
{{- .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 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+
{{ .Date | time.Format ":date_full" }}
+
+
+ {{- .Content -}} +
+
+{{ end }} \ No newline at end of file -- cgit v1.1