aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
Diffstat (limited to 'pyblog')
-rwxr-xr-xpyblog8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyblog b/pyblog
index e44d2719..f4ae79ab 100755
--- a/pyblog
+++ b/pyblog
@@ -281,7 +281,7 @@ def generate_blog_list(feed):
div_blog_list += u'</table>\n'
# write a new <h2 class="blog-index-year-title"> tag with the smaller year
year = date.year
- div_blog_list += u'\n<h2 class="blog-index-year-title" id="{0}">{0}</h2>\n\n'.format(year)
+ div_blog_list += u'\n<h2 class="blog-index-year-title" id="{0}"><span class="left-h2">.:</span><span class="title-h2">{0}</span><span class="right-h2">:.</span></h2>\n\n'.format(year)
div_blog_list += u'<table class="blog-index-yearly-index">\n'
table_opened = True
@@ -360,7 +360,7 @@ def generate_notes_list():
div_notes_list += u'</table>\n'
# write a new <h2 class="blog-index-year-title"> tag with the smaller year
year = date.year
- div_notes_list += u'\n<h2 class="blog-index-year-title" id="{0}">{0}</h2>\n\n'.format(year)
+ div_notes_list += u'\n<h2 class="blog-index-year-title" id="{0}"><span class="left-h2">.:</span><span class="title-h2">{0}</span><span class="right-h2">:.</span></h2>\n\n'.format(year)
div_notes_list += u'<table class="blog-index-yearly-index">\n'
table_opened = True
@@ -418,7 +418,7 @@ def generate_index(feed):
tocbuff.write(u'</table>\n')
# write a new <h2 class="blog-index-year-title"> tag with the smaller year
year = date.year
- tocbuff.write(u'\n<h2 class="blog-index-year-title" id="{0}">{0}</h2>\n\n'.format(year))
+ tocbuff.write(u'\n<h2 class="blog-index-year-title" id="{0}"><span class="left-h2">.:</span><span class="title-h2">{0}</span><span class="right-h2">:.</span></h2>\n\n'.format(year))
tocbuff.write(u'<table class="blog-index-yearly-index">\n')
table_opened = True
@@ -607,7 +607,7 @@ def rewrite_title():
h1_title = []
for myh2 in soup.find_all("h2"):
- if re.match("^(?!.*article-title).*$", str(myh2)):
+ if re.match("^(?!.*blog-index-year-title).*$", str(myh2)):
h2_id = myh2['id']
h2_name = myh2.string