From b56158b63725362bc1c85f6cb3d23b5bf506e1a8 Mon Sep 17 00:00:00 2001
From: neodarz <neodarz@neodarz.net>
Date: Sun, 12 May 2019 23:45:41 +0200
Subject: Fix some css issues

---
 pyblog | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'pyblog')

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
 
-- 
cgit v1.2.1