Commits

Vlad Riscutia committed 6be18cd Draft

Other HTML validation fixes

Comments (0)

Files changed (3)

tinkerer/ext/patch.py

     Hyperlink titles by embedding appropriate a tag inside
     h1 tags (which should only be post titles). 
     """
-    body = body.replace("<h1>", '<a href="%s.html"><h1>' % 
+    body = body.replace("<h1>", '<h1><a href="%s.html">' % 
             (docpath + docname), 1)
-    body = body.replace("</h1>", "</h1></a>", 1)
+    body = body.replace("</h1>", "</a></h1>", 1)
     return body
 
 

tinkerer/themes/modern5/static/modern5.css_t

 a, a:visited { color: {{ link_color }}; text-decoration: none; }
 a:hover { color: {{ link_color }}; text-decoration: underline; }
 a.footnote-reference { vertical-align: super; }
-div.section a h1 { color: {{ text_color }}; text-decoration: none; }
+div.section h1 a { color: {{ text_color }}; text-decoration: none; }
 tt.docutils.literal { background-color: {{ sidebar_color }}; }
 
 div.content { background-color: {{ sidebar_color }}; }

tinkerer/themes/tinkerbase/layout.html

 
 {%- block linktags %}
     {{ super() }}
-    <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ rss_feed_link }}">
+    <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ rss_feed_link }}" />
 {%- endblock %}
 
 {%- block header %}