From 171faafc67ebdede85cdb06aa168e2d2f4722dc3 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 29 May 2020 01:55:57 +0800 Subject: [PATCH] Unify local links to posts (#65). --- _includes/panel.html | 2 +- _includes/sidebar.html | 2 +- _layouts/category.html | 2 +- _layouts/home.html | 2 +- _layouts/tag.html | 2 +- tabs/archives.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/_includes/panel.html b/_includes/panel.html index e8502dd46..d6ae271cd 100644 --- a/_includes/panel.html +++ b/_includes/panel.html @@ -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 %}
  • {{ post.title }}
  • diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 6deb037b5..50a74d94f 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -21,7 +21,7 @@
    - {{- site.title -}} + {{- site.title -}}
    {{- site.tagline -}}
    diff --git a/_layouts/category.html b/_layouts/category.html index 125931114..a53aff5fc 100644 --- a/_layouts/category.html +++ b/_layouts/category.html @@ -16,7 +16,7 @@ layout: page