Markdown template can not path to outside root folder?


(熊宝) #1

My site directory:

Project
├── docs
│ ├── index.md
│ ├── about.md
│ └── article.md
└── templates
└── index.html
├── about.html
└── article.html

site root is /docs
I want markdown template path to outside root folder: /templates

root /project/docs
markdown {
template index /project/template/index.html

}

500 error.
Can’t do this?


(Toby Allen) #2

This is expected behaviour.

If you wish to do this, you need to set your root to /project


(Matt 🐓) #3

I use relative paths to separate my project from my templates…

template …/admin-stuff/template.html