changeset 957:84d8fadf9e67

page: Default to an empty title instead of 'Untitled Page'. This helps for microblogging because tweet-like posts often have no title.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 07 Oct 2017 12:11:13 -0700
parents 4f136b746081
children e1cadbfddb48
files piecrust/page.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/page.py	Thu Oct 05 21:34:21 2017 -0700
+++ b/piecrust/page.py	Sat Oct 07 12:11:13 2017 -0700
@@ -20,7 +20,7 @@
         super(PageConfiguration, self).__init__(values, validate)
 
     def _validateAll(self, values):
-        values.setdefault('title', 'Untitled Page')
+        values.setdefault('title', '')
         values.setdefault('content_type', 'html')
         ppp = values.get('posts_per_page')
         if ppp is not None: