Changed directory structure for gh pages

This commit is contained in:
天クマ 2025-10-28 07:38:44 -03:00
commit d249a982ef
61 changed files with 15 additions and 12 deletions

View file

@ -5,17 +5,20 @@ import path from 'path';
let allPlugins = []; let allPlugins = [];
export default function (eleventyConfig) { export default function (eleventyConfig) {
eleventyConfig.addPassthroughCopy("projects/**/*.png"); eleventyConfig.setInputDirectory("src");
eleventyConfig.addPassthroughCopy("projects/**/*.jpg"); eleventyConfig.setOutputDirectory("public");
eleventyConfig.addPassthroughCopy("projects/**/*.jpeg");
eleventyConfig.addPassthroughCopy("authors/**/*.png"); eleventyConfig.addPassthroughCopy("src/projects/**/*.png");
eleventyConfig.addPassthroughCopy("authors/**/*.jpg"); eleventyConfig.addPassthroughCopy("src/projects/**/*.jpg");
eleventyConfig.addPassthroughCopy("authors/**/*.jpeg"); eleventyConfig.addPassthroughCopy("src/projects/**/*.jpeg");
eleventyConfig.addPassthroughCopy("assets"); eleventyConfig.addPassthroughCopy("src/authors/**/*.png");
eleventyConfig.addPassthroughCopy("src/authors/**/*.jpg");
eleventyConfig.addPassthroughCopy("src/authors/**/*.jpeg");
eleventyConfig.addPassthroughCopy("src/assets");
eleventyConfig.addPassthroughCopy({ "favicon/*" : "/" }); eleventyConfig.addPassthroughCopy({ "favicon/*" : "/" });
eleventyConfig.addCollection("projects", function(collection) { eleventyConfig.addCollection("projects", function(collection) {
return collection.getFilteredByGlob("./projects/**/*.md"); return collection.getFilteredByGlob("src/projects/**/*.md");
}); });
eleventyConfig.addGlobalData("eleventyComputed", { eleventyConfig.addGlobalData("eleventyComputed", {
@ -65,6 +68,6 @@ export default function (eleventyConfig) {
allPlugins.forEach(doc => this.addDoc(doc)); allPlugins.forEach(doc => this.addDoc(doc));
}); });
fs.writeFileSync('./_site/search_index.json', JSON.stringify(idx)); fs.writeFileSync('./public/search_index.json', JSON.stringify(idx));
}); });
}; };

View file

@ -7,13 +7,13 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"serve": "npx @11ty/eleventy --serve", "serve": "npx @11ty/eleventy --serve",
"watch:sass": "sass static/scss:_site/static/css --watch", "watch:sass": "sass src/static/scss:public/static/css --watch",
"build:sass": "sass static/scss:_site/static/css", "build:sass": "sass src/static/scss:public/static/css",
"watch:eleventy": "eleventy --serve", "watch:eleventy": "eleventy --serve",
"build:eleventy": "ELEVENTY_ENV=development eleventy", "build:eleventy": "ELEVENTY_ENV=development eleventy",
"start": "npm run watch:eleventy & npm run watch:sass", "start": "npm run watch:eleventy & npm run watch:sass",
"build": "npm run build:eleventy & npm run build: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:eleventy:prod": "ELEVENTY_ENV=production eleventy",
"build:prod": "npm run build:eleventy:prod & npm run build:sass:prod" "build:prod": "npm run build:eleventy:prod & npm run build:sass:prod"
}, },

View file

Before

Width:  |  Height:  |  Size: 828 B

After

Width:  |  Height:  |  Size: 828 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 534 B

After

Width:  |  Height:  |  Size: 534 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 560 KiB

After

Width:  |  Height:  |  Size: 560 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 377 KiB

After

Width:  |  Height:  |  Size: 377 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 721 B

After

Width:  |  Height:  |  Size: 721 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.9 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 92 KiB

After

Width:  |  Height:  |  Size: 92 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 305 KiB

After

Width:  |  Height:  |  Size: 305 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 534 B

After

Width:  |  Height:  |  Size: 534 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 730 B

After

Width:  |  Height:  |  Size: 730 B

Before After
Before After