Extract out recent news section

This commit is contained in:
Justin Ethier 2018-07-06 16:12:35 -04:00
parent d4eb5e9f7a
commit 1547ba45cb
2 changed files with 11 additions and 11 deletions

View file

@ -0,0 +1,10 @@
<h2>Recent News</h2>
{% for post in site.posts limit:3 %}
<h4>
<a href="/cyclone/{{ post.url }}">{{ post.title }}</a>
</h4>
<span class="date-labels">{{post.date | date: "%b %d %Y" }}</span>
<br />
{{ post.excerpt }}
{% endfor %}

View file

@ -64,17 +64,7 @@
<div id="main_content_wrap" class="outer">
<section id="main_content" class="inner">
{{ content }}
<h2{% if page.title == "Cyclone Scheme" %}style="display: none;"{% endif %}>
Recent News
</h2>
{% for post in site.posts limit:3 %}
<h4>
<a href="/cyclone/{{ post.url }}">{{ post.title }}</a>
</h4>
<span class="date-labels">{{post.date | date: "%b %d %Y" }}</span>
<br />
{{ post.excerpt }}
{% endfor %}
{% if page.title == "Cyclone Scheme" %}{% include recent-news.html %}{% endif %}
</section>
</div>