mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
69 lines
2.3 KiB
HTML
69 lines
2.3 KiB
HTML
{% assign post = site.categories['coverstory'].first %}
|
|
{% if page.is_post == true %}
|
|
{% assign post = page %}
|
|
{% endif %}
|
|
|
|
<div id="fb-root"></div>
|
|
<script>(function(d, s, id) {
|
|
var js, fjs = d.getElementsByTagName(s)[0];
|
|
if (d.getElementById(id)) return;
|
|
js = d.createElement(s); js.id = id;
|
|
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8&appId=691723664330476";
|
|
fjs.parentNode.insertBefore(js, fjs);
|
|
}(document, 'script', 'facebook-jssdk'));</script>
|
|
|
|
<div id="header" class="container {% if page.is_post %}post-header{% endif %}">
|
|
<div class="row">
|
|
{% if post.image != nil %}
|
|
<div class="col-md-8 tinted cover-image center-fill-container img-container">
|
|
<img class="center-both img-center-fill" src="/images/posts/{{ post.image }}" alt="">
|
|
</div>
|
|
{% endif %}
|
|
<div class="col-md-4 cover-details">
|
|
<div class="cover-title-label">
|
|
Cover Story
|
|
</div>
|
|
<div class="cover-title">
|
|
<a href="{{ post.url }}" class="cover-link">
|
|
<h1 class="title">{{ post.title }}</h1>
|
|
</a>
|
|
</div>
|
|
<div class="red-strip"></div>
|
|
<div class="cover-excerpt">
|
|
{{ post.excerpt }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="new-articles" class="container content">
|
|
<section>
|
|
<div class="row">
|
|
{% for post in site.related_posts limit: 5 %}
|
|
|
|
{% if forloop.index == 3 %}
|
|
</div>
|
|
<div class="row">
|
|
{% endif %}
|
|
|
|
<div class="article col-sm-{% if forloop.index < 3 %}6{% else %}4{% endif %}">
|
|
<div class="center-fill-container img-container tinted">
|
|
<img src="/images/posts/{{post.image}}" alt="" class="img-center-fill center-both {% if post.image == null %}hidden{% endif %}">
|
|
</div>
|
|
<div class="details">
|
|
<div class="head">
|
|
<h3 class="title"><a href="{{ post.url }}">{{ post.title }}</a></h3>
|
|
<div class="tag"><a href="/category/{{ post.category }}/">{{ post.category }}</a></div>
|
|
<span class="date">{{ post.date | date: "%b %e, %Y" | upcase }}</span>
|
|
</div>
|
|
{% if forloop.index < 3 %}
|
|
<div class="excerpt">{% if post.excerpt != null %}{{ post.excerpt | markdownify }}{% endif %}</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</section>
|
|
</div>
|