From 517993e10b56bdba3bac50e873ba9942d22fc00b Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Sat, 18 Jul 2020 16:36:38 -0400 Subject: basic announcement system working; still needs date filtering --- _includes/announcement.liquid | 12 ++++++++++++ _layouts/index.liquid | 5 +++++ posts/2020-06-05-a-new-tutoring-business.md | 2 +- styles/blog.scss | 1 + styles/index.scss | 2 ++ 5 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 _includes/announcement.liquid diff --git a/_includes/announcement.liquid b/_includes/announcement.liquid new file mode 100644 index 0000000..60d778d --- /dev/null +++ b/_includes/announcement.liquid @@ -0,0 +1,12 @@ +
+
+
+
+ {{ post.title }} +
+
+ {{ post.content }} +
+
+
+
diff --git a/_layouts/index.liquid b/_layouts/index.liquid index 81d243c..c9dbdb6 100644 --- a/_layouts/index.liquid +++ b/_layouts/index.liquid @@ -34,6 +34,11 @@ + + {% for post in collections.posts.pages %} {% if post.categories[0] == + "announcement" %} {% include "announcement.liquid" %} {% endif %} {% endfor + %} +
diff --git a/posts/2020-06-05-a-new-tutoring-business.md b/posts/2020-06-05-a-new-tutoring-business.md index 779886c..e0756ba 100644 --- a/posts/2020-06-05-a-new-tutoring-business.md +++ b/posts/2020-06-05-a-new-tutoring-business.md @@ -7,4 +7,4 @@ layout: post.liquid is_draft: false --- -(Post text goes here) +It's a brand new tutoring business with a special new offer! diff --git a/styles/blog.scss b/styles/blog.scss index d286a5e..d4f2702 100644 --- a/styles/blog.scss +++ b/styles/blog.scss @@ -3,5 +3,6 @@ //body { // background-image: url("/assets/bg.png"); //} + @import "./main.scss"; @import "../_bulma/node_modules/bulma/sass/components/card.sass"; diff --git a/styles/index.scss b/styles/index.scss index 7916766..eb9a750 100644 --- a/styles/index.scss +++ b/styles/index.scss @@ -108,3 +108,5 @@ body { background-image: url("/assets/bg.png"); } + +@import "../_bulma/node_modules/bulma/sass/components/message.sass"; -- cgit v1.2.3