diff news.md @ 205:585fc24ed727

Adapt news system to foundation 6.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Thu, 09 Jul 2020 23:01:48 +0900
parents 1222b6208a70
children
line wrap: on
line diff
--- a/news.md	Thu Jul 09 23:00:55 2020 +0900
+++ b/news.md	Thu Jul 09 23:01:48 2020 +0900
@@ -4,33 +4,25 @@
 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>
+{% 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>
-</section>
+  {% endif %}
+</div>
+{% endfor %}