comparison 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
comparison
equal deleted inserted replaced
117:2a6d697fee61 118:49c2fa89daa8
1 ---
2 layout: null
3 ---
4
5 <!--
6
7 This is the community news page for Octave. It is displayed in the
8 "Community News" display area of the Octave GUI. It should not have
9 the usual page header that other pages on the Octave web site have.
10 The following string must be present for Octave to recognize and
11 display this page as the comunity news page. Don't forget to increment
12 the `community-news-page-serial` number by one in order to show new
13 entires in the GUI:
14
15 this-is-the-gnu-octave-community-news-page
16 community-news-page-serial=7
17
18 -->
19
20 <!DOCTYPE html>
21 <html>
22 <head>
23 <title>Octave Community News</title>
24 <style type="text/css">
25 <!--
26 body {
27 }
28 -->
29 </style>
30 </head>
31 <body>
32
33 {% for post in site.categories.news limit:3 %}
34
35 <h2><a href="{{ post.url | absolute_url }}">{{ post.title }}</a></h2>
36
37 {{ post.excerpt }}
38
39 <small><em>&mdash; The Octave Developers, {{ post.date | date: "%b %-d, %Y" }}</em></small>
40
41 {% endfor %}
42
43 </body>
44 </html>