From c768ec65d244a1e12a8d9a3866c869a347cdb516 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sun, 5 Nov 2023 16:46:17 +0000 Subject: [PATCH] Blog section --- archetypes/blog.md | 2 ++ content/about.md | 2 +- content/blog/new-post.md | 11 ----------- themes/lhs/layouts/_default/baseof.html | 4 ++-- themes/lhs/layouts/_default/single.html | 6 +++--- themes/lhs/layouts/blog/single.html | 24 ++++++++++++++++++++++++ 6 files changed, 32 insertions(+), 17 deletions(-) delete mode 100644 content/blog/new-post.md create mode 100644 themes/lhs/layouts/blog/single.html diff --git a/archetypes/blog.md b/archetypes/blog.md index d4cf70f..d8a6974 100644 --- a/archetypes/blog.md +++ b/archetypes/blog.md @@ -4,4 +4,6 @@ subtitle: "" date: {{ .Date }} tags: [] draft: true +author: +author_email: # used for Gravatar icon --- diff --git a/content/about.md b/content/about.md index 5480d18..a1e9a35 100644 --- a/content/about.md +++ b/content/about.md @@ -1,7 +1,7 @@ --- title: About Leigh Hackspace subtitle: An accessible, social workspace, where you can meet people, learn new skills, and build awesome things! ----- +--- ### What is Leigh Hackspace? Leigh Hackspace is a shared community workspace that offers the facilities you need to make a bunch of stuff you’re not able to make at home. Maybe you don’t have the right tools? Maybe you don’t have enough space? Maybe you’re stuck trying to figure out a problem you’re not able to solve on your own? We’re here to help! diff --git a/content/blog/new-post.md b/content/blog/new-post.md deleted file mode 100644 index ce72548..0000000 --- a/content/blog/new-post.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: "New Post" -date: 2023-11-05T08:09:29Z -draft: true ---- - -sdadasda -asd -asda -sda -sd diff --git a/themes/lhs/layouts/_default/baseof.html b/themes/lhs/layouts/_default/baseof.html index 28b12e5..048a704 100644 --- a/themes/lhs/layouts/_default/baseof.html +++ b/themes/lhs/layouts/_default/baseof.html @@ -17,7 +17,7 @@
{{ block "hero-content" . }}
-
+

{{ block "title" . }}{{ end }}

{{ block "subtitle" . }}{{ end }}

@@ -33,7 +33,7 @@
- {{ block "content" .}} + {{ block "content" . }} {{ end }}
diff --git a/themes/lhs/layouts/_default/single.html b/themes/lhs/layouts/_default/single.html index 2d765d9..739bb0a 100644 --- a/themes/lhs/layouts/_default/single.html +++ b/themes/lhs/layouts/_default/single.html @@ -1,11 +1,11 @@ {{ define "title" }} - {{ .Title }} +{{ .Title }} {{ end }} {{ define "subtitle" }} - {{ .Params.subtitle }} +{{ .Params.subtitle }} {{ end }} {{ define "content" }} - {{ .Content }} +{{ .Content }} {{ end }} \ No newline at end of file diff --git a/themes/lhs/layouts/blog/single.html b/themes/lhs/layouts/blog/single.html new file mode 100644 index 0000000..eb4b013 --- /dev/null +++ b/themes/lhs/layouts/blog/single.html @@ -0,0 +1,24 @@ +{{ define "title" }} +{{ .Title }} +{{ end }} + +{{ define "subtitle" }} +{{ .Params.subtitle }} +{{ end }} + +{{ define "content" }} +
+
+

+ +

+
+
+
+

This is a post by {{ .Params.author }}.
Originally + posted {{ .Date | time.Format ":date_full" }}

+
+
+
+{{ .Content }} +{{ end }} \ No newline at end of file