Open imsus opened 6 years ago
Not sure if we need the components
folder, you can simply use a theme for this:
theme: ./components
Then you can put layout components in ./components/layouts/
.
Peco will also load ./components/index.js
which can be used to register global components, e.g. https://github.com/egoist/blog/blob/master/themes/luna/index.js
For drafts, maybe we can use front-matter: draft: true
for this? We don't build draft posts in production mode but only in dev mode.
Oh I actually forgot that Peco ignores all files/folders starting with an underscore _
(except _posts
), so _drafts
directory is already excluded by default 😅
Current Structure
Proposed Structure
Just some idea by mixing structure from Jekyll/Hugo/Hexo architecture