# HG changeset patch # User Dirk Olmes # Date 1375754776 -7200 # Node ID 7bfdc2b1d76806706b8d785fc848dd73251111a6 # Parent bb1f035109dad1e9a14fc096d3ad057cee5dd703 generate a captcha per blog post diff -r bb1f035109da -r 7bfdc2b1d768 pelicanconf.py --- a/pelicanconf.py Thu Jul 18 02:19:49 2013 +0200 +++ b/pelicanconf.py Tue Aug 06 04:06:16 2013 +0200 @@ -11,7 +11,13 @@ TYPOGRIFY = True PLUGIN_PATH = '../simple_comments' -PLUGINS = [ 'simple_comments' ] +PLUGINS = [ 'simple_comments', 'pelicaptcha' ] + +# simple_comments plugin config +COMMENT_PATH = 'comments' + +# pelicaptcha plugin config +PELICAPTCHA_FONT = '/usr/share/tuxpaint/fonts/FreeMono.ttf' # this theme looks ok but has some downsides: # - tag list at the bottom only @@ -29,8 +35,6 @@ CATEGORY_FEED_ATOM = None TRANSLATION_FEED_ATOM = None -COMMENT_PATH = 'comments' - # Blogroll LINKS = () #('Pelican', 'http://getpelican.com/'), # ('Python.org', 'http://python.org/'), diff -r bb1f035109da -r 7bfdc2b1d768 publishconf.py --- a/publishconf.py Thu Jul 18 02:19:49 2013 +0200 +++ b/publishconf.py Tue Aug 06 04:06:16 2013 +0200 @@ -15,10 +15,3 @@ FEED_ALL_ATOM = 'feeds/all.atom.xml' CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml' - -DELETE_OUTPUT_DIRECTORY = True - -# Following items are often useful when publishing - -#DISQUS_SITENAME = "" -#GOOGLE_ANALYTICS = "" diff -r bb1f035109da -r 7bfdc2b1d768 themes/tuxlite_tbs/templates/simple_comments.html --- a/themes/tuxlite_tbs/templates/simple_comments.html Thu Jul 18 02:19:49 2013 +0200 +++ b/themes/tuxlite_tbs/templates/simple_comments.html Tue Aug 06 04:06:16 2013 +0200 @@ -20,15 +20,44 @@
-
- Your name: -
-
- -
-
- -
+ + + + + + + + + + + + + + + + + + + + +
+ Your name: + + +
+ Comment: + + +
+ Please type the characters you see in this image: + +
+ + + +
+ +
{% endif %}