Mercurial > web-octave
diff community-news.html @ 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 | |
children | 88b2480e271a |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/community-news.html Sat Nov 19 00:30:14 2016 +0100 @@ -0,0 +1,44 @@ +--- +layout: null +--- + +<!-- + +This is the community news page for Octave. It is displayed in the +"Community News" display area of the Octave GUI. It should not have +the usual page header that other pages on the Octave web site have. +The following string must be present for Octave to recognize and +display this page as the comunity news page. Don't forget to increment +the `community-news-page-serial` number by one in order to show new +entires in the GUI: + + this-is-the-gnu-octave-community-news-page + community-news-page-serial=7 + +--> + +<!DOCTYPE html> +<html> +<head> +<title>Octave Community News</title> +<style type="text/css"> +<!-- +body { +} +--> +</style> +</head> +<body> + +{% for post in site.categories.news limit:3 %} + +<h2><a href="{{ post.url | absolute_url }}">{{ post.title }}</a></h2> + +{{ post.excerpt }} + +<small><em>— The Octave Developers, {{ post.date | date: "%b %-d, %Y" }}</em></small> + +{% endfor %} + +</body> +</html>