changeset 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 2a6d697fee61
children 22f0158e5848
files _layouts/community-news.html community-news.html community-news.md
diffstat 3 files changed, 44 insertions(+), 43 deletions(-) [+]
line wrap: on
line diff
--- a/_layouts/community-news.html	Fri Nov 18 11:31:43 2016 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-<!--
-
-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:
-
-  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>
-
-{{ content }}
-
-</body>
-</html>
--- /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>&mdash; The Octave Developers, {{ post.date | date: "%b %-d, %Y" }}</em></small>
+
+{% endfor %}
+
+</body>
+</html>
--- a/community-news.md	Fri Nov 18 11:31:43 2016 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
----
-layout: community-news
----
-
-{% for post in site.posts limit:3 %}
-
-## [{{ post.title }}]({{ post.url | absolute_url }})
-
-{{ post.excerpt }}
-
-<small><em>&mdash; The Octave Developers, {{ post.date | date: "%b %-d, %Y" }}</em></small>
-
-{% endfor %}