summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";