mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
Edit header.html to avoid listing coverstory articles under new articles
This commit is contained in:
@ -36,14 +36,18 @@
|
|||||||
<div class="container-title">New Articles</div>
|
<div class="container-title">New Articles</div>
|
||||||
<section>
|
<section>
|
||||||
<div class="row outer-row">
|
<div class="row outer-row">
|
||||||
{% for post in site.posts limit: 5 %}
|
|
||||||
|
{% assign counter = 0 %} <!-- Count of articles rendered under new articles -->
|
||||||
{% if forloop.index == 3 %}
|
|
||||||
</div>
|
{% for post in site.posts limit: 10 %}
|
||||||
<div class="row outer-row">
|
{% if post.category == "coverstory" %}
|
||||||
|
{% continue %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% assign counter = counter | plus:1 %}
|
||||||
<div class="col-sm-{% if forloop.index < 3 %}6{% else %}4{% endif %} article-col">
|
{% if counter > 5 %}
|
||||||
|
{% break %}
|
||||||
|
{% else %}
|
||||||
|
<div class="col-sm-{% if counter < 3 %}6{% else %}4{% endif %} article-col">
|
||||||
<a href="{{ post.url }}">
|
<a href="{{ post.url }}">
|
||||||
<div class="article">
|
<div class="article">
|
||||||
<div class="center-fill-container img-container tinted">
|
<div class="center-fill-container img-container tinted">
|
||||||
@ -51,17 +55,18 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="details">
|
<div class="details">
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<h3 class="title"><a href="{{ post.url }}">{{ post.title }}</a></h3>
|
<h3 class="title"><a href="{{ post.url }}">{{ post.title }}</a></h3>
|
||||||
<div class="tag"><a href="/category/{{ post.category }}/">{{ site.data.categories_name[post.category] }}</a></div>
|
<div class="tag"><a href="/category/{{ post.category }}/">{{ site.data.categories_name[post.category] }}</a></div>
|
||||||
<span class="date">{{ post.date | date: "%b %e, %Y" | upcase }}</span>
|
<span class="date">{{ post.date | date: "%b %e, %Y" | upcase }}</span>
|
||||||
</div>
|
</div>
|
||||||
{% if forloop.index < 3 %}
|
{% if counter < 3 %}
|
||||||
<div class="excerpt">{% if post.excerpt != null %}{{ post.excerpt | markdownify }}{% endif %}</div>
|
<div class="excerpt">{% if post.excerpt != null %}{{ post.excerpt | markdownify }}{% endif %}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div> <!-- details -->
|
</div> <!-- details -->
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
Reference in New Issue
Block a user