From 83b592e646c4bf1de59932ef733bae735859064f Mon Sep 17 00:00:00 2001 From: Egor Tensin <Egor.Tensin@gmail.com> Date: Fri, 9 Apr 2021 01:24:38 +0300 Subject: _includes: site.baseurl -> relative_url --- _includes/categories/categories.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '_includes') diff --git a/_includes/categories/categories.html b/_includes/categories/categories.html index c5a60f3..05ef954 100644 --- a/_includes/categories/categories.html +++ b/_includes/categories/categories.html @@ -1,10 +1,10 @@ {% if site.categories.size != 0 %} {% for category in site.categories %} - <h1><a class="category" href="{{ site.baseurl }}/categories/{{ category[0] | slugify: 'pretty' }}">{{ category[0] }}</a></h1> + <h1><a class="category" href="{{ '/categories/' | relative_url }}{{ category[0] | slugify: 'pretty' }}">{{ category[0] }}</a></h1> <hr/> <ul> {% for post in category[1] %} - <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }} — {{ post.title }}</a></li> + <li><a href="{{ post.url | relative_url }}">{{ post.date | date: "%Y-%m-%d" }} — {{ post.title }}</a></li> {% endfor %} </ul> {% endfor %} -- cgit v1.2.3