Mercurial > web-octave
changeset 77:8697f27c627c kai
Create a before existing News page.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Thu, 13 Oct 2016 17:54:34 +0200 |
parents | b5f58a6bcd79 |
children | 5fc2af501316 |
files | news.md |
diffstat | 1 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/news.md Thu Oct 13 17:54:34 2016 +0200 @@ -0,0 +1,23 @@ +--- +layout: default +title: News +menu: false +--- + +[{% octicon rss class:"octicon-rss-octave" %} News feed][Feed] + +{% 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 }} + </div> +{% endif %} +{% endfor %} + +[Feed]: {{ "feed.xml" | relative_url }}