1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Fixed last-mod display for non-English named posts.

This commit is contained in:
Cotes Chung
2020-07-14 21:32:01 +08:00
parent 5b0aaa5403
commit 9f3619e54a
2 changed files with 12 additions and 6 deletions

View File

@@ -23,7 +23,7 @@
<ul class="post-content pl-0 pb-1 ml-1 mt-2">
{% for item in update_list %}
{% assign post_url = item | split: "::" | last | prepend: "/posts/" | append: "/" %}
{% assign post_url = item | split: "::" | last | url_encode | prepend: "/posts/" | append: "/" %}
{% assign post = site.posts | where: "url", post_url | first %}
{% if post %}