]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Fix(blog): Fix tag encoding
authorOleg Broytman <phd@phdru.name>
Sun, 16 Jun 2024 10:02:01 +0000 (13:02 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 16 Jun 2024 10:02:01 +0000 (13:02 +0300)
Makefile
phd_site.tmpl

index 9a402a61433761163e71636170883c15c777ba6b..36cb84960aeebddb35b06957a6c1c135debe887f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -81,3 +81,7 @@ special-templates: ../htdocs/phdru.name/Russian/Software/instant-messengers/inst
 .PHONY: clean-html
 clean-html:
        find ../htdocs/phdru.name/ -type f -name \*.html -delete
+
+.PHONY: clean-blog
+clean-blog:
+       find ../htdocs/phdru.name/Russian/blog -type f -name \*.html -delete
index 5ad7cea5af3dc4babf9dfc890917430dd5a010b7..b141476094ac1aead573da0f4953f6826a35619e 100644 (file)
@@ -141,7 +141,7 @@ $style
 $body
 #from urllib.parse import quote
 #def encode_tag(tag):
-$quote(tag.replace(' ', '_'))
+$quote(tag.replace(' ', '_'), encoding='koi8-r')
 #end def
 #def link_tag($tag)
 <a href="../../../tags/${encode_tag(tag)}.html">$tag</a>