Use default_root for pages, normals defaults doesn't work for collections

This commit is contained in:
Adam Schmideg
2019-03-22 15:55:03 +01:00
parent 585369608d
commit e4490becd2
5 changed files with 14 additions and 19 deletions

View File

@ -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 %}

View File

@ -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: '//', '/' }}