Skip to content
This repository has been archived by the owner on Jan 22, 2023. It is now read-only.

[RFC] Change directory structure #4

Open
chrisdmacrae opened this issue Feb 14, 2019 · 3 comments
Open

[RFC] Change directory structure #4

chrisdmacrae opened this issue Feb 14, 2019 · 3 comments

Comments

@chrisdmacrae
Copy link
Owner

@budparr @DirtyF @futuregerald

Do you think it would make more sense to you if the directory structure was:

|- lib/
|--- includes
|--- data
|--- filters
|--- shortcodes
|--- linters
|--- transforms
|- content/
|--- index.njk
|--- ...

?

@budparr
Copy link
Collaborator

budparr commented Feb 14, 2019

I think that make sense. I like Content being isolated, though src is fine too, I think

@DirtyF
Copy link
Collaborator

DirtyF commented Feb 14, 2019

Any Parcel constraints here?

Could we sort files in separate folders like this?

lib/        # Eleventy functions (filters, shortcodes, transforms, etc.)
includes/   # layouts, partials
data/       # Global data files
content/    # pages, collections, etc.
assets/     # CSS, JS, fonts, images, SVG, etc.

@chrisdmacrae
Copy link
Owner Author

chrisdmacrae commented Feb 14, 2019

@budparr @DirtyF no parcel constraints here. Parcel runs on a temporary cache of 11tys output.

11ty can handle any project setup, honestly.

I prefer Hugo's separation of concerns over Jekyll's mixed content.

Another example is Gatsby:

|- pages/ - templates to generate pages
|- content/ - file-system based content (Md, html)
|- components/ - small interface units

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants