diff --git a/run-server b/run-server new file mode 100755 index 0000000..ea30ee6 --- /dev/null +++ b/run-server @@ -0,0 +1 @@ +/home/raoul/VirtualEnv/ScribeEngine/tags/bin/paster serve development.ini --reload diff --git a/scribeengine/lib/helpers.py b/scribeengine/lib/helpers.py index 613be40..ca64222 100644 --- a/scribeengine/lib/helpers.py +++ b/scribeengine/lib/helpers.py @@ -64,7 +64,7 @@ class Flash(object): def teaser(text, url): position = text.find(u'

') if position > 0: - return text[:position] + return text[:position + 4] elif len(text) > 300: text = text[:297] position = len(text) - 1 @@ -81,11 +81,11 @@ def teaser(text, url): def url_for_post(post): #TODO: this is hard coded. return url_for( - controller='blog', + controller='blog', action='view', - year=post.created.strftime('%Y'), - month=post.created.strftime('%m'), - day=post.created.strftime('%d'), + year=post.created.strftime('%Y'), + month=post.created.strftime('%m'), + day=post.created.strftime('%d'), url=post.url ) diff --git a/scribeengine/lib/utils.py b/scribeengine/lib/utils.py index caa9db1..69154ef 100644 --- a/scribeengine/lib/utils.py +++ b/scribeengine/lib/utils.py @@ -67,7 +67,7 @@ def generate_url(title): ``title`` The title of the blog post. """ - return re.sub(r'[^a-zA-Z0-9]+', u'-', title.lower()) + return re.sub(r'[^a-zA-Z0-9]+', u'-', title.lower()).strip() def hash_password(password): """ diff --git a/scribeengine/public/styles/style.css b/scribeengine/public/styles/style.css index 08ad597..827903a 100644 --- a/scribeengine/public/styles/style.css +++ b/scribeengine/public/styles/style.css @@ -200,7 +200,6 @@ hr { #comments, #respond { - /*font-size: 1.5em;*/ margin-top: 1.8em; }