Mercurial > web-octave
changeset 104:1222b6208a70
Take the news-page look of index.html
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Wed, 02 Nov 2016 10:50:35 +0100 |
parents | 34cd51c807b1 |
children | c4c45ae9d0d0 |
files | news.md |
diffstat | 1 files changed, 29 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/news.md Wed Nov 02 10:49:54 2016 +0100 +++ b/news.md Wed Nov 02 10:50:35 2016 +0100 @@ -4,24 +4,33 @@ menu: true --- -<a class="right" href="{{ "/feed.xml" | relative_url }}"> - <span class="label warning"> - RSS - </span> -</a> - -{% for post in site.posts %} -{% if post.title == "News Archive" %} -- [**{{ post.title }}**]({{ post.url | relative_url }}) -{% else %} -- [**{{ post.title }}**]({{ post.url | relative_url }}) - ({{ post.date | date: "%b %-d, %Y" }}) - - - <div class="news-content"> - {{ post.excerpt }} +<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> -{% endif %} -{% endfor %} - -[Feed]: {{ "feed.xml" | relative_url }} +</section>