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

Unify local links to posts (#65).

This commit is contained in:
Cotes Chung
2020-05-29 01:55:57 +08:00
parent db5eb0a18a
commit 171faafc67
6 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,7 @@
{% assign post = site.posts | where: "url", post_url | first %}
{% if post %}
{% assign url = post.url | prepend: site.baseurl %}
{% assign url = post.url | relative_url %}
<li><a href="{{ url }}">{{ post.title }}</a></li>