summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_includes/news.html6
-rw-r--r--_layouts/postlist.html7
2 files changed, 7 insertions, 6 deletions
diff --git a/_includes/news.html b/_includes/news.html
new file mode 100644
index 0000000..74d3971
--- /dev/null
+++ b/_includes/news.html
@@ -0,0 +1,6 @@
+{% for item in site.data.news %}
+<div id="{{ item.id }}" class="news-item" lang="{{ item.lang | default: "en" }}">
+ <a class="banner-close-button">&lbrack;&times;&rbrack;</a>
+ {{ item.content }}
+</div>
+{% endfor %}
diff --git a/_layouts/postlist.html b/_layouts/postlist.html
index f555146..f50748e 100644
--- a/_layouts/postlist.html
+++ b/_layouts/postlist.html
@@ -3,12 +3,7 @@ layout: default
---
<div class="home">
- {% for item in site.data.news %}
- <div id="{{ item.id }}" class="news-item" lang="{{ item.lang | default: "en" }}">
- <a class="banner-close-button">&lbrack;&times;&rbrack;</a>
- {{ item.content }}
- </div>
- {% endfor %}
+ {% include news.html %}
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }}</h1>