mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-14 00:07:36 +02:00
Extract out recent news section
This commit is contained in:
parent
d4eb5e9f7a
commit
1547ba45cb
2 changed files with 11 additions and 11 deletions
10
_includes/recent-news.html
Normal file
10
_includes/recent-news.html
Normal 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 %}
|
||||
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue