rothsandro / eleventy-notes

A template for Eleventy to publish your personal notes or docs.
https://eleventy-notes.sandroroth.com/
140 stars 17 forks source link

Move the content into the content folder #31

Closed imagepit closed 1 year ago

imagepit commented 1 year ago

We want to move the content into the content folder as shown in the figure below. In this case, how should I change the setting?

image
rothsandro commented 1 year ago

This is not supported, the app.json and index.md always have to be in the root. Other files could be moved into a content folder but the folder would be part of the URL (which is likely not what you want).

Is there a specific reason you want to move them into a separate folder?

imagepit commented 1 year ago

Thanks. I wanted to manage it as a docker image with only separate files to be written in markdown. I've been using a different static site generator and had separate folders like this. I'll consider moving everything except index.md and app.json to the content folder.

rothsandro commented 1 year ago

I just checked if I could make this configurable but that's not possible. If we set the content folder as input directory but keep the .app folder outside, the data and includes directory would not be part of the input directory anymore and that's not supported by Eleventy.

imagepit commented 1 year ago

Understood. Thank you. This matter is closed.