commit: 5d639e7d7ffd1f8eefadcb6e74ff95df7122cd98
Author: Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sat Apr 25 11:29:44 2015 +0000
Commit: Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sat Apr 25 11:29:44 2015 +0000
URL: https://gitweb.gentoo.org/sites/www.git/commit/?id=5d639e7d
Display date on single news item page, bug 547634
_config.yml | 4 +++-
_layouts/post.html | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/_config.yml b/_config.yml
index f49e05a..f01b912 100644
--- a/_config.yml
+++ b/_config.yml
@@ -29,8 +29,10 @@ defaults:
nav1: inside-gentoo
-
scope:
- path: '_posts'
+ path: ""
+ type: "posts"
values:
+ layout: "post"
nav1: home
nav2: news
nav2-show: true
diff --git a/_layouts/post.html b/_layouts/post.html
new file mode 100644
index 0000000..bf8aca6
--- /dev/null
+++ b/_layouts/post.html
@@ -0,0 +1,11 @@
+---
+layout: tyrian
+nav2-display: true
+---
+<h1 class="first-header">
+ {{ page.title }}
+ <br>
+ <small>{{ page.date | date: "%b %-d, %Y" }}</small>
+</h1>
+
+{{ content }}
\ No newline at end of file