view news.md @ 104:1222b6208a70

Take the news-page look of index.html
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Wed, 02 Nov 2016 10:50:35 +0100
parents e7efa40deb17
children 585fc24ed727
line wrap: on
line source

---
layout: page
title: News
menu: true
---

<section>
  <div class="row">
    <div class="columns small-12">
      {% for post in site.posts %}
      <div class="panel callout">
        {% if post == site.posts.first %}
        <a class="right" href="{{ "/feed.xml" | relative_url }}">
          <span class="label warning">
            RSS
          </span>
        </a>
        {% endif %}
        {% if post.title == "News Archive" %}
        <h3 class="entry-title">
          <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
        </h3>
        {% else %}
        <h3 class="entry-title">
          <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
        </h3>
        <p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</p>
        <div class="entry-content">
          {{ post.excerpt }}
        </div>
        {% endif %}
      </div>
      {% endfor %}
    </div>
  </div>
</section>