summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-07-18 16:36:38 -0400
committerAdam T. Carpenter <atc@53hor.net>2020-07-18 16:36:38 -0400
commit517993e10b56bdba3bac50e873ba9942d22fc00b (patch)
tree0b4483ba883b71edd5652128959b3569ff02f8e4
parent827244286aa7b0c5d9d52e0568f35aaa151bb811 (diff)
downloadcarpentertutoring-517993e10b56bdba3bac50e873ba9942d22fc00b.tar.xz
carpentertutoring-517993e10b56bdba3bac50e873ba9942d22fc00b.zip
basic announcement system working; still needs date filtering
-rw-r--r--_includes/announcement.liquid12
-rw-r--r--_layouts/index.liquid5
-rw-r--r--posts/2020-06-05-a-new-tutoring-business.md2
-rw-r--r--styles/blog.scss1
-rw-r--r--styles/index.scss2
5 files changed, 21 insertions, 1 deletions
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 @@
+<section class="section quiet">
+ <div class="container">
+ <article class="message is-primary is-large">
+ <div class="message-header">
+ {{ post.title }}
+ </div>
+ <div class="message-body">
+ {{ post.content }}
+ </div>
+ </article>
+ </div>
+</section>
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 @@
</div>
</section>
+ <!-- announcements -->
+ {% for post in collections.posts.pages %} {% if post.categories[0] ==
+ "announcement" %} {% include "announcement.liquid" %} {% endif %} {% endfor
+ %}
+
<!-- intro blurb, portrait -->
<section class="section quiet">
<div class="container">
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";