From 323f453596659c754a438a3c9cf7066872585318 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 16 Jun 2024 13:02:01 +0300 Subject: [PATCH] Fix(blog): Fix tag encoding --- Makefile | 4 ++++ phd_site.tmpl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2