aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-09 01:24:38 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-09 01:24:38 +0300
commit83b592e646c4bf1de59932ef733bae735859064f (patch)
tree2ed65109ffaa87d720a8c577411db5d5da1cac4e /_includes
parent_includes: add categories.html (diff)
downloadjekyll-theme-83b592e646c4bf1de59932ef733bae735859064f.tar.gz
jekyll-theme-83b592e646c4bf1de59932ef733bae735859064f.zip
_includes: site.baseurl -> relative_url
Diffstat (limited to '_includes')
-rw-r--r--_includes/categories/categories.html4
1 files changed, 2 insertions, 2 deletions
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" }} &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>
{% endfor %}