view pages/news.md @ 215:dedb85c54245

Reorganize homepage.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Thu, 10 Sep 2020 17:47:36 +0900
parents
children
line wrap: on
line source

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

{% for post in site.posts %}
<div class="primary callout">
  {% if post == site.posts.first %}
  <a class="float-right button tiny warning" href="{{ "/feed.xml" | relative_url }}">
    RSS
  </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 %}