diff pages/news.md @ 241:598d7f098082

Overhaul website, less JavaScript, more FontAwesome.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Thu, 18 Mar 2021 15:59:24 +0900
parents
children 2e13395adcc0
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pages/news.md	Thu Mar 18 15:59:24 2021 +0900
@@ -0,0 +1,27 @@
+---
+layout: page
+title: News
+icon: <i class="fas fa-rss"></i>
+permalink: news.html
+---
+
+{% 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 }}"><i class="fas fa-rss"></i>
+    RSS
+  </a>
+  {% endif %}
+  <p>
+    <strong><a href="{{ post.url | relative_url }}">{{ post.title }}</a></strong>
+  {% if post.title != "News Archive" %}
+    &ndash; {{ post.date | date: "%b %-d, %Y" }}
+  </p>
+  <div class="entry-content">
+    {{ post.excerpt }}
+  </div>
+  {% else %}
+  </p>
+  {% endif %}
+</div>
+{% endfor %}