From: Oleg Broytman Date: Sun, 16 Jun 2024 10:02:01 +0000 (+0300) Subject: Fix(blog): Fix tag encoding X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=323f453596659c754a438a3c9cf7066872585318;p=phdru.name%2Fphdru.name.git Fix(blog): Fix tag encoding --- diff --git a/Makefile b/Makefile index 9a402a6..36cb849 100644 --- 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 diff --git a/phd_site.tmpl b/phd_site.tmpl index 5ad7cea..b141476 100644 --- a/phd_site.tmpl +++ b/phd_site.tmpl @@ -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) $tag