Mercurial > web-octave
view news.md @ 118:49c2fa89daa8
Merge community-news related layout and Markdown logic.
* community-news.html: Merge community-news related layout and Markdown logic.
Document serial number feature. Consider only posts of site.categories.news.
* _layouts/community-news.html: merged with community-news.html
* community-news.md: merged with community-news.html
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Sat, 19 Nov 2016 00:30:14 +0100 |
parents | 1222b6208a70 |
children | 585fc24ed727 |
line wrap: on
line source
--- layout: page title: News 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> </div> </section>