Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Commit

Permalink
Update the sample site to demonstrate the new datetime handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
mythmon committed Oct 12, 2011
1 parent fec756e commit 487f292
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sample/content/tests/dates.mkd
@@ -0,0 +1,4 @@
title: Dates
type: index
category: tests
---
5 changes: 5 additions & 0 deletions sample/content/tests/dates1.mkd
@@ -0,0 +1,5 @@
title: Datetime only
datetime: 2011-10-12 12:20:00
category: tests/dates
---
This only has a datetime
6 changes: 6 additions & 0 deletions sample/content/tests/dates2.mkd
@@ -0,0 +1,6 @@
title: Date and time
date: 2011-10-12
time: 12:20:00
category: tests/dates
---
This a date and time
6 changes: 6 additions & 0 deletions sample/content/tests/dates3.mkd
@@ -0,0 +1,6 @@
title: Time overwriding datetime.
datetime: 2011-10-12 12:20:00
time: 15:00:00
category: tests/dates
---
In this a datetime is overwritten by at time.
1 change: 1 addition & 0 deletions sample/templates/default.html
Expand Up @@ -4,6 +4,7 @@ <h1>{{ page.title }}</h1>
<h2>by: {% for author in page.authors %}
{{author.name}}{% if not loop.last %}, {% endif %}
{% endfor %}</h2>
<h2>datetime: {{page.datetime}}, date: {{page.date}}, time: {{page.time}}</h2>
<h3>Tags:</h3>
<ul>
{% for tag in page.tags %}
Expand Down

0 comments on commit 487f292

Please sign in to comment.