Permalink
Browse files

updated documentation to reflect changes to date-based URL handling

  • Loading branch information...
1 parent 1a4c7b7 commit 09f1fa96b2cb5f3338e1d802d771b995f09ad744 @joshourisman committed Feb 20, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 documentation/content/features.yaml
@@ -65,9 +65,11 @@ content: |
<code>Dynamic Page</code> it is necessary to specify a <code>url</code>
attribute in your config.yaml file. That URL must also contain a
placeholder for which the <code>Dynamic Page</code>'s slug will be
- substituded. A Python <code>datetime</code> object containing the current
- date and time is also made available to your URL. This is handled using
- Python 3's string formatting, so the <code>url</code> for your
+ substituded. If your page definition includes a <code>date</code> attribute
+ it will also made available to your URL. For this to work properly, the
+ <code>date</code> attribute must be specified as a timestamp like so:
+ <code>date: !!timestampe 2010-02-19</code>. This is handled using Python
+ 3's string formatting, so the <code>url</code> for your
<code>Dynamic Page</code> should look something
like this:
<code>url: 'blog/{date.year}/{date.month}/{date.day}/{slug}.html'</code>.

0 comments on commit 09f1fa9

Please sign in to comment.