Mercurial > web-octave
diff pages/news.md @ 215:dedb85c54245
Reorganize homepage.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Thu, 10 Sep 2020 17:47:36 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pages/news.md Thu Sep 10 17:47:36 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 %}