diff options
author | neodarz <neodarz@neodarz.net> | 2019-05-12 23:45:41 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-05-12 23:45:41 +0200 |
commit | b56158b63725362bc1c85f6cb3d23b5bf506e1a8 (patch) | |
tree | bac48270df39d732edcf69113c99fed385f50202 /pyblog | |
parent | 531d132ac822f0f8ef6d954fb098f5ad2a5b07df (diff) | |
download | my_new_personal_website-b56158b63725362bc1c85f6cb3d23b5bf506e1a8.tar.xz my_new_personal_website-b56158b63725362bc1c85f6cb3d23b5bf506e1a8.zip |
Fix some css issues
Diffstat (limited to '')
-rwxr-xr-x | pyblog | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |