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

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