comparison 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
comparison
equal deleted inserted replaced
204:899288d58c0e 205:585fc24ed727
2 layout: page 2 layout: page
3 title: News 3 title: News
4 menu: true 4 menu: true
5 --- 5 ---
6 6
7 <section> 7 {% for post in site.posts %}
8 <div class="row"> 8 <div class="primary callout">
9 <div class="columns small-12"> 9 {% if post == site.posts.first %}
10 {% for post in site.posts %} 10 <a class="float-right button tiny warning" href="{{ "/feed.xml" | relative_url }}">
11 <div class="panel callout"> 11 RSS
12 {% if post == site.posts.first %} 12 </a>
13 <a class="right" href="{{ "/feed.xml" | relative_url }}"> 13 {% endif %}
14 <span class="label warning"> 14 {% if post.title == "News Archive" %}
15 RSS 15 <h3 class="entry-title">
16 </span> 16 <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
17 </a> 17 </h3>
18 {% endif %} 18 {% else %}
19 {% if post.title == "News Archive" %} 19 <h3 class="entry-title">
20 <h3 class="entry-title"> 20 <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
21 <a href="{{ post.url | relative_url }}">{{ post.title }}</a> 21 </h3>
22 </h3> 22 <p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</p>
23 {% else %} 23 <div class="entry-content">
24 <h3 class="entry-title"> 24 {{ post.excerpt }}
25 <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
26 </h3>
27 <p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</p>
28 <div class="entry-content">
29 {{ post.excerpt }}
30 </div>
31 {% endif %}
32 </div>
33 {% endfor %}
34 </div>
35 </div> 25 </div>
36 </section> 26 {% endif %}
27 </div>
28 {% endfor %}