Only display recent news on the main page

This commit is contained in:
Justin Ethier 2018-07-06 16:05:11 -04:00
parent d6ab1669d1
commit d4eb5e9f7a

View file

@ -64,7 +64,9 @@
<div id="main_content_wrap" class="outer"> <div id="main_content_wrap" class="outer">
<section id="main_content" class="inner"> <section id="main_content" class="inner">
{{ content }} {{ content }}
<h2>Recent News</h2> <h2{% if page.title == "Cyclone Scheme" %}style="display: none;"{% endif %}>
Recent News
</h2>
{% for post in site.posts limit:3 %} {% for post in site.posts limit:3 %}
<h4> <h4>
<a href="/cyclone/{{ post.url }}">{{ post.title }}</a> <a href="/cyclone/{{ post.url }}">{{ post.title }}</a>