Skip to content

Commit 2874724

Browse files
committed
fix for categories broken links with subfolder usage
1 parent 2669690 commit 2874724

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/_includes/archive_post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ <h2><a href="{{ site.url }}{{ post.url }}">{% if site.titlecase %}{{ post.title
33
<time datetime="{{ post.date | datetime | date_to_xmlschema }}" pubdate>{{ post.date | date: "<span class='month'>%b</span> <span class='day'>%d</span> <span class='year'>%Y</span>"}}</time>
44
{% if category != '0' %}
55
<footer>
6-
<span class="categories meta">posted in {{ post.categories | category_links }}</span>
6+
<span class="categories meta">posted in {{ post.categories | category_links | expand_urls: site.url }}</span>
77
</footer>
88
{% endif %}

source/_includes/post/categories.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% if post %}
66
{{ post.categories | category_links }}
77
{% else %}
8-
{{ page.categories | category_links }}
8+
{{ page.categories | category_links | expand_urls: root_url }}
99
{% endif %}
1010
</span>
1111
{% endunless %}

0 commit comments

Comments
 (0)