summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreatradish <[email protected]>2023-04-06 13:30:54 +0800
committereatradish <[email protected]>2023-04-06 13:30:54 +0800
commit3426d73c865761918886381b34c2f6bfe0cc95fd (patch)
treeb2c18bf4b1e0a946fcec24d6353a4be3eecab12a
parenteb5c08af6932c3ae030896da6dfc179ab4565b43 (diff)
downloadSeje2-3426d73c865761918886381b34c2f6bfe0cc95fd.tar.gz
Seje2-3426d73c865761918886381b34c2f6bfe0cc95fd.tar.bz2
Seje2-3426d73c865761918886381b34c2f6bfe0cc95fd.zip
fix: try to fix '二 〇 一 九' issue (#2)
-rw-r--r--templates/macros.html5
1 files changed, 1 insertions, 4 deletions
diff --git a/templates/macros.html b/templates/macros.html
index 7379b1b..416c2b4 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -9,8 +9,5 @@
'廿一', '廿二', '廿三', '廿四',
'廿五', '廿六', '廿七', '廿八',
'廿九', '三十', '三十一'] %}
-{% for c in year | as_str %}
- {{ lut1 | nth(n=c | int) }}
-{% endfor %}
-年{{ lut2 | nth(n=month-1)}}月{{ lut2 | nth(n=day-1) }}日
+{% for c in year | as_str %}{{ lut1 | nth(n=c | int) }}{% endfor %}年{{ lut2 | nth(n=month-1)}}月{{ lut2 | nth(n=day-1) }}日
{% endmacro %}