aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_layouts/category.html
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-08 21:35:11 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-08 21:35:11 +0300
commit0b13dadaacc964ad275794f457ec587069b890e9 (patch)
treeea32d0cbd20382df53036a24686df8ceaadca84f /_layouts/category.html
parentpaginator: add explanatory comments (diff)
downloadjekyll-theme-0b13dadaacc964ad275794f457ec587069b890e9.tar.gz
jekyll-theme-0b13dadaacc964ad275794f457ec587069b890e9.zip
use relative_url instead of site.baseurl
Diffstat (limited to '_layouts/category.html')
-rw-r--r--_layouts/category.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/_layouts/category.html b/_layouts/category.html
index efb34db..5be0ddc 100644
--- a/_layouts/category.html
+++ b/_layouts/category.html
@@ -7,8 +7,8 @@ layout: default
{% if site.categories[page.category].size > 0 %}
<ul>
{% for post in site.categories[page.category] %}
- <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.date | date: "%Y-%m-%d" }} &mdash; {{ post.title }}</a></li>
+ <li><a href="{{ post.url | relative_url }}">{{ post.date | date: "%Y-%m-%d" }} &mdash; {{ post.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
-<p>For a complete list of posts grouped by category, please see <a href="{{ site.baseurl }}/all/">this page</a>.</p>
+<p>For a complete list of posts grouped by category, please see <a href="{{ '/all/' | relative_url }}">this page</a>.</p>