Skip to content

Commit 44380d7

Browse files
committed
Come crawling back to keeping everything in
1 parent 5ba4900 commit 44380d7

File tree

16 files changed

+8
-7
lines changed

16 files changed

+8
-7
lines changed

.eleventy.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,12 @@ export default async function(eleventyConfig) {
8383
eleventyConfig.setQuietMode(true);
8484

8585
return {
86-
dir: { input: 'content',
86+
dir: {
87+
input: 'src',
8788
output: 'public',
88-
includes: '../src/assets/views',
89-
layouts: '../src/assets/views/layouts',
90-
data: '../src/data'
89+
includes: 'assets/views',
90+
layouts: 'assets/views/layouts',
91+
data: 'data'
9192
},
9293
templateFormats: ['njk', 'md', '11ty.js']
9394
};

src/config/collections.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
*/
1010
pages(eleventyConfig) {
1111
eleventyConfig.addCollection('pages', (collectionApi) => {
12-
return collectionApi.getFilteredByGlob(['content/pages/**/*.md', 'content/*/pages/**/*.md']);
12+
return collectionApi.getFilteredByGlob(['src/content/pages/**/*.njk', 'src/content/pages/**/*.md']);
1313
});
1414
},
1515

@@ -18,7 +18,7 @@ export default {
1818
*/
1919
// posts(eleventyConfig) {
2020
// eleventyConfig.addCollection('posts', (collectionApi) => {
21-
// return collectionApi.getFilteredByGlob(['content/posts/**/*.md', 'content/*/posts/**/*.md']);
21+
// return collectionApi.getFilteredByGlob(['src/content/posts/**/*.md', 'src/content/*/posts/**/*.md']);
2222
// });
2323
// },
2424

@@ -28,7 +28,7 @@ export default {
2828
// */
2929
// pagesEn(eleventyConfig) {
3030
// eleventyConfig.addCollection('pagesEn', (collectionApi) => {
31-
// return collectionApi.getFilteredByGlob('content/pages/**/*.md');
31+
// return collectionApi.getFilteredByGlob('src/content/pages/**/*.md');
3232
// });
3333
// },
3434
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)