Changed directory structure for gh pages
|
|
@ -5,17 +5,20 @@ import path from 'path';
|
|||
let allPlugins = [];
|
||||
|
||||
export default function (eleventyConfig) {
|
||||
eleventyConfig.addPassthroughCopy("projects/**/*.png");
|
||||
eleventyConfig.addPassthroughCopy("projects/**/*.jpg");
|
||||
eleventyConfig.addPassthroughCopy("projects/**/*.jpeg");
|
||||
eleventyConfig.addPassthroughCopy("authors/**/*.png");
|
||||
eleventyConfig.addPassthroughCopy("authors/**/*.jpg");
|
||||
eleventyConfig.addPassthroughCopy("authors/**/*.jpeg");
|
||||
eleventyConfig.addPassthroughCopy("assets");
|
||||
eleventyConfig.setInputDirectory("src");
|
||||
eleventyConfig.setOutputDirectory("public");
|
||||
|
||||
eleventyConfig.addPassthroughCopy("src/projects/**/*.png");
|
||||
eleventyConfig.addPassthroughCopy("src/projects/**/*.jpg");
|
||||
eleventyConfig.addPassthroughCopy("src/projects/**/*.jpeg");
|
||||
eleventyConfig.addPassthroughCopy("src/authors/**/*.png");
|
||||
eleventyConfig.addPassthroughCopy("src/authors/**/*.jpg");
|
||||
eleventyConfig.addPassthroughCopy("src/authors/**/*.jpeg");
|
||||
eleventyConfig.addPassthroughCopy("src/assets");
|
||||
eleventyConfig.addPassthroughCopy({ "favicon/*" : "/" });
|
||||
|
||||
eleventyConfig.addCollection("projects", function(collection) {
|
||||
return collection.getFilteredByGlob("./projects/**/*.md");
|
||||
return collection.getFilteredByGlob("src/projects/**/*.md");
|
||||
});
|
||||
|
||||
eleventyConfig.addGlobalData("eleventyComputed", {
|
||||
|
|
@ -65,6 +68,6 @@ export default function (eleventyConfig) {
|
|||
allPlugins.forEach(doc => this.addDoc(doc));
|
||||
});
|
||||
|
||||
fs.writeFileSync('./_site/search_index.json', JSON.stringify(idx));
|
||||
fs.writeFileSync('./public/search_index.json', JSON.stringify(idx));
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,13 +7,13 @@
|
|||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"serve": "npx @11ty/eleventy --serve",
|
||||
"watch:sass": "sass static/scss:_site/static/css --watch",
|
||||
"build:sass": "sass static/scss:_site/static/css",
|
||||
"watch:sass": "sass src/static/scss:public/static/css --watch",
|
||||
"build:sass": "sass src/static/scss:public/static/css",
|
||||
"watch:eleventy": "eleventy --serve",
|
||||
"build:eleventy": "ELEVENTY_ENV=development eleventy",
|
||||
"start": "npm run watch:eleventy & npm run watch:sass",
|
||||
"build": "npm run build:eleventy & npm run build:sass",
|
||||
"build:sass:prod": "sass static/scss:_site/static/css --style compressed",
|
||||
"build:sass:prod": "sass src/static/scss:public/static/css --style compressed",
|
||||
"build:eleventy:prod": "ELEVENTY_ENV=production eleventy",
|
||||
"build:prod": "npm run build:eleventy:prod & npm run build:sass:prod"
|
||||
},
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 828 B After Width: | Height: | Size: 828 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 534 B After Width: | Height: | Size: 534 B |
|
Before Width: | Height: | Size: 560 KiB After Width: | Height: | Size: 560 KiB |
|
Before Width: | Height: | Size: 377 KiB After Width: | Height: | Size: 377 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 721 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 92 KiB |
|
Before Width: | Height: | Size: 305 KiB After Width: | Height: | Size: 305 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 534 B After Width: | Height: | Size: 534 B |
|
Before Width: | Height: | Size: 730 B After Width: | Height: | Size: 730 B |