]> git.phdru.name Git - phdru.name/phdru.name.git/blobdiff - phd_site.tmpl
Feat(blog): Encode tags
[phdru.name/phdru.name.git] / phd_site.tmpl
index 0568b49090046382724192633240900f9d3feee3..67eb3412546901353bbb619c3e55bad2b3373f4b 100644 (file)
@@ -99,12 +99,6 @@ $style
 #end for
 #end if
 <link rel="shortcut icon" href="${root}favicon.ico">
-#if not $root and $path.endswith('index.html')
-<link rel="openid.delegate" href="https://phdru.name/">
-<link rel="openid2.local_id" href="https://phdru.name/">
-<link rel="openid.server" href="https://home.phdru.name/cgi-bin/poit.py">
-<link rel="openid2.provider" href="https://home.phdru.name/cgi-bin/poit.py">
-#end if
 <meta name="MSSmartTagsPreventParsing" content="TRUE"> <!-- MUST DIE -->
 </head>
 <body bgcolor="#CCCCCC" text="#000000"
@@ -145,8 +139,12 @@ $style
 #end if
 </p>
 $body
+#from urllib import quote
+#def encode_tag(tag):
+$quote(tag.decode('utf-8').encode('koi8-r').replace(' ', '_'))
+#end def
 #def link_tag($tag)
-<a href="../../../tags/${tag}.html">$tag</a>
+<a href="../../../tags/${encode_tag(tag)}.html">$tag</a>
 #end def
 #if $Tag
 <hr width="90%">