datamad2017/_includes/latest-news.html

18 lines
685 B
HTML
Raw Normal View History

2014-07-28 21:27:01 +02:00
<!-- Begin Latest News Section -->
<section id="latest-news">
<div class="content-wrapper">
<div class="col-lg-10 col-lg-offset-1">
<h3>Latest news</h3>
<article class="row">
{% for post in site.posts limit:2 %}
{% assign postUrl = site.baseurl | append: post.url %}
<div class="post col-md-6 col-sm-6 text-left animated hiding" data-animation="fadeInDown" data-delay="500">
<h6>{{ post.title }}</h6>
<p class="post-body">{{ post.content | strip_html | truncate: 250 }} <a href="{{ postUrl }}">continue reading</a></p>
</div>
{% endfor %}
</article>
</div>
</div>
</section>
<!-- End Latest News Section -->