X-Git-Url: https://git.llucax.com/software/blitiri.git/blobdiff_plain/5e45cd0354881aee35f582b4c233eb8341ebc7a3..68d0af399627dab98e5206f7df26eb354f7d4ce5:/blitiri.cgi?ds=inline diff --git a/blitiri.cgi b/blitiri.cgi index 1dadce5..583a497 100755 --- a/blitiri.cgi +++ b/blitiri.cgi @@ -14,6 +14,9 @@ # Directory where entries are stored data_path = "/tmp/blog/data" +# Directory where comments are stored (must be writeable by the web server) +comments_path = "/tmp/blog/comments" + # Path where templates are stored. Use an empty string for the built-in # default templates. If they're not found, the built-in ones will be used. templates_path = "/tmp/blog/templates" @@ -60,17 +63,22 @@ except: pass +# Pimp *_path config variables to support relative paths +data_path = os.path.realpath(data_path) +templates_path = os.path.realpath(templates_path) + # Default template -default_main_header = """ - +default_main_header = """\ + + - +
- +
Comment #%(number)d
+by %(author)s + on %(year)04d-%(month)02d-%(day)02d %(hour)02d:%(minute)02d + +