changeset 87:1752b8520622 kai

Keep layout <-> content pattern for community-news.
author Kai T. Ohlhus <k.ohlhus@gmail.com>
date Mon, 17 Oct 2016 18:38:41 +0200
parents 298b7f4ac910
children 45d807d2bfcc
files _layouts/community-news.html community-news.md
diffstat 2 files changed, 37 insertions(+), 34 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/_layouts/community-news.html	Mon Oct 17 18:38:41 2016 +0200
@@ -0,0 +1,30 @@
+<!--
+
+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=6
+
+-->
+
+<!DOCTYPE html>
+<html>
+<head>
+<title>Octave Community News</title>
+<style type="text/css">
+<!--
+body {
+}
+-->
+</style>
+</head>
+<body>
+
+{{ content }}
+
+</body>
+</html>
--- a/community-news.md	Mon Oct 17 18:38:15 2016 +0200
+++ b/community-news.md	Mon Oct 17 18:38:41 2016 +0200
@@ -1,40 +1,13 @@
----
-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:
-
-  this-is-the-gnu-octave-community-news-page
-  community-news-page-serial=6
-
--->
-
-<html>
-<head>
-<title>Octave Community News</title>
-<style TYPE="text/css">
-<!--
-body {
-}
--->
-</style>
-</head>
-<body>
+layout: community-news
+---
 
 {% for post in site.posts limit:3 %}
-<h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
-<p>
+
+## [{{ post.title }}]({{ post.url | absolute_url }})
+
 {{ post.excerpt }}
-</p>
-<p>
+
 <small><em>&mdash; The Octave Developers, {{ post.date | date: "%b %-d, %Y" }}</em></small>
-</p>
+
 {% endfor %}
-
-</body>
-</html>