comment section anchor is now configurable

master
Stefan Krulj 15 years ago
parent f307babfd0
commit 62f02eea6d
  1. 2
      pylog.py
  2. 2
      pylog_config.py

@ -101,7 +101,7 @@ def disp_file_dict(d,keys):
print '</span>&nbsp;'
sys.stdout.write('<a class="commentcount" href="'+cfg.topurl+script+'?')
sys.stdout.write(urllib.urlencode({'path': os.path.normpath(os.path.dirname(f)), \
'disp':os.path.normpath(f)}).replace('&','&amp;')+'#disqus_thread"></a>')
'disp':os.path.normpath(f)}).replace('&','&amp;')+cfg.commentanchor+'"></a>')
print '</h1>'
prev_actions[typ](f)

@ -37,6 +37,8 @@ footer="""
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
""" # This footer will be printed at the end of the <body> tag
commentanchor="#disqus_thread" #The anchor name of the comment section
datefmt='%Y-%m-%d' # format of the date which is displayed next to the entry
# See pythons manual reference for time.strptime for details
contentdir="cnt" # directory where the content is located

Loading…
Cancel
Save