{{ .Title }}
+-
+ {{ range .Pages }}
+
- + {{ .Title }} + {{ .Date.Format "2006-01-02" }} + + {{ end }} +
From 365aba5f1785df0e67e7aeda4d1824f82dba3301 Mon Sep 17 00:00:00 2001 From: Thomas Smith <49042513+tsmitty11@users.noreply.github.com> Date: Mon, 27 Mar 2023 10:41:09 -0400 Subject: [PATCH 01/45] Add blog and first blog post --- src/content/blog/_index.md | 5 +++++ src/content/blog/my-first-blog-post.md | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/content/blog/_index.md create mode 100644 src/content/blog/my-first-blog-post.md diff --git a/src/content/blog/_index.md b/src/content/blog/_index.md new file mode 100644 index 0000000..d8755ce --- /dev/null +++ b/src/content/blog/_index.md @@ -0,0 +1,5 @@ +--- +title: "Blog" +description: "A collection of my thoughts, insights, and experiences." +date: 2023-03-27 +--- diff --git a/src/content/blog/my-first-blog-post.md b/src/content/blog/my-first-blog-post.md new file mode 100644 index 0000000..87e390b --- /dev/null +++ b/src/content/blog/my-first-blog-post.md @@ -0,0 +1,9 @@ +--- +title: "My First Blog Post" +date: 2023-03-27 +draft: false +--- + +## Welcome to my blog! + +This is my first blog post. Stay tuned for more exciting content! From 979fda0db1fdc16f185e18f70ec583375b6a68b5 Mon Sep 17 00:00:00 2001 From: Thomas Smith <49042513+tsmitty11@users.noreply.github.com> Date: Mon, 27 Mar 2023 10:43:46 -0400 Subject: [PATCH 02/45] Add blog.html layout --- src/layouts/page/blog.html | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 src/layouts/page/blog.html diff --git a/src/layouts/page/blog.html b/src/layouts/page/blog.html new file mode 100644 index 0000000..e69de29 From 8b89f20d9d82cda6175d5135345bc6fb6b76d635 Mon Sep 17 00:00:00 2001 From: Thomas Smith <49042513+tsmitty11@users.noreply.github.com> Date: Mon, 27 Mar 2023 11:01:47 -0400 Subject: [PATCH 03/45] Added vanilla blog components --- src/layouts/_default/list.html | 20 ++++++++++++++++++++ src/layouts/_default/single.html | 14 ++++++++++++++ src/layouts/page/blog.html | 0 3 files changed, 34 insertions(+) delete mode 100644 src/layouts/page/blog.html diff --git a/src/layouts/_default/list.html b/src/layouts/_default/list.html index e69de29..e158d2c 100644 --- a/src/layouts/_default/list.html +++ b/src/layouts/_default/list.html @@ -0,0 +1,20 @@ + + +
+ + +{{ .Date.Format "2006-01-02" }}
+ {{ .Content }} + Back to blog + + diff --git a/src/layouts/page/blog.html b/src/layouts/page/blog.html deleted file mode 100644 index e69de29..0000000 From 73a19b741b8ddbb2ba95e218052afe2516f1964f Mon Sep 17 00:00:00 2001 From: Thomas Smith <49042513+tsmitty11@users.noreply.github.com> Date: Mon, 27 Mar 2023 11:29:32 -0400 Subject: [PATCH 04/45] Added partials to list.html --- src/content/blog/_index.md | 2 ++ src/layouts/_default/list.html | 45 ++++++++++++++++++++++------------ 2 files changed, 32 insertions(+), 15 deletions(-) diff --git a/src/content/blog/_index.md b/src/content/blog/_index.md index d8755ce..7bd3018 100644 --- a/src/content/blog/_index.md +++ b/src/content/blog/_index.md @@ -2,4 +2,6 @@ title: "Blog" description: "A collection of my thoughts, insights, and experiences." date: 2023-03-27 +menu: "main" +weight: 5 --- diff --git a/src/layouts/_default/list.html b/src/layouts/_default/list.html index e158d2c..097bff0 100644 --- a/src/layouts/_default/list.html +++ b/src/layouts/_default/list.html @@ -1,20 +1,35 @@ - - - -Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
+{{ .Date.Format "2006-01-02" }}
- {{ .Content }} - Back to blog + {{ partial "navbar.html" . }} +