# HG changeset patch # User k0s # Date 1256508685 14400 # Node ID 2bd6b2b543dcc08a7b4a207e78a5f207285a835f # Parent 36698624435bd5b41b3c9a90a3990e8663c51c67 now have blog entry snippets diff -r 36698624435b -r 2bd6b2b543dc bitsyblog/bitsyblog.py --- a/bitsyblog/bitsyblog.py Sun Oct 25 17:25:58 2009 -0400 +++ b/bitsyblog/bitsyblog.py Sun Oct 25 18:11:25 2009 -0400 @@ -230,10 +230,11 @@ # GENSHI: data dictionary request.environ['data'] = { 'site_name': self.site_name, 'request': request, - 'link': self.liin} + 'link': self.link, + 'escape': cgi.escape } # front matter of the site - index = self.get_index() + index = get_index() if index is not None: return index @@ -883,7 +884,8 @@ # GENSHI: global data dictionary request.environ['data'] = { 'site_name': self.site_name, 'request': request, - 'link': self.link } + 'link': self.link, + 'escape': cgi.escape } ### user space user, path = self.userpath(request) diff -r 36698624435b -r 2bd6b2b543dc bitsyblog/templates/blog.html --- a/bitsyblog/templates/blog.html Sun Oct 25 17:25:58 2009 -0400 +++ b/bitsyblog/templates/blog.html Sun Oct 25 18:11:25 2009 -0400 @@ -21,61 +21,65 @@ - + + - -
- + +
+ + + - - - ${entry.cooked_body} - -
+ ${entry.cooked_body} + +
- -
- - public - - - - secret - - - - private - - - -
+ +
+ + public + + + + secret + + + + private + + + +
- -
- Mangled URL: - ${mangled_url} -
+ +
+ Mangled URL: + ${mangled_url}
+
+ +
-