diff pages/menu/news.md @ 217:6de5c7dcc43f

maint: add "pages/menu" subfolder to get a better overview. Pages in this folder have a menu entry at the top bar of the website.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Tue, 15 Sep 2020 14:55:06 +0900
parents
children 55efa802cd8e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pages/menu/news.md	Tue Sep 15 14:55:06 2020 +0900
@@ -0,0 +1,29 @@
+---
+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 %}