Use default_root for pages, normals defaults doesn't work for collections
This commit is contained in:
@ -8,13 +8,13 @@
|
||||
<link rel="icon" type="image/png" href="{% include link.html url=site.favicon %}" />
|
||||
{% if layout.common-css %}
|
||||
{% for css in layout.common-css %}
|
||||
<link rel="stylesheet" href="{% include link.html url=css %}"" />
|
||||
<link rel="stylesheet" href="{% include link.html url=css %}" />
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if page.css %}
|
||||
{% for css in page.css %}
|
||||
<link rel="stylesheet" href="{% include link.html url=css %}"" />
|
||||
<link rel="stylesheet" href="{% include link.html url=css %}" />
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
{{ include.url | remove: ".html" | prepend: page.root | replace: '//', '/' }}
|
||||
{% capture root %}{{ page.root or site.default_root }}{% endcapture %}
|
||||
{{ include.url | remove: ".html" | prepend: root | replace: '//', '/' }}
|
Reference in New Issue
Block a user