Skip to content

Commit 4afcce8

Browse files
committed
Don't force hostname into relative_root_path
1 parent ba5acb9 commit 4afcce8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/base_path.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
'site.url' is set to 'http://localhost:4000' and
88
'site.baseurl' is empty.
99

10-
In both of the above cases we set 'relative_root_path' to 'site.url + site.baseurl'.
10+
In both of the above cases we set 'relative_root_path' to 'site.baseurl'.
1111

1212
When we build a website locally with `jekyll build`,
1313
both 'site.url' and 'site.baseurl' are empty.
@@ -25,7 +25,7 @@
2525
{%- endcomment -%}
2626

2727
{% if site.url %}
28-
{% assign relative_root_path = site.url | append: site.baseurl %}
28+
{% assign relative_root_path = site.baseurl %}
2929
{% else %}
3030
{% assign last_char = page.url | slice: -1 %}
3131
{% if last_char == "/" %}

0 commit comments

Comments
 (0)