Use page.root for relative links

This commit is contained in:
Adam Schmideg
2019-03-21 15:33:28 +01:00
parent ad91ddbe37
commit aa9c2d2b00
5 changed files with 25 additions and 10 deletions

2
doc.md
View File

@ -1,7 +1,7 @@
---
title: Other documents
root: ..
---
{% for p in site.doc %}
* [{{ p.title }}]({% include link.html url=p.url %})
{% endfor %}