Fixed featured projects in home page.

This commit is contained in:
天クマ 2025-10-26 14:18:41 -03:00
commit bb218c9c12
11 changed files with 47 additions and 97 deletions

View file

@ -11,6 +11,11 @@ export default function (eleventyConfig) {
eleventyConfig.addPassthroughCopy("authors/**/*.jpg");
eleventyConfig.addPassthroughCopy("authors/**/*.jpeg");
eleventyConfig.addPassthroughCopy("assets");
eleventyConfig.addCollection("projects", function(collection) {
return collection.getFilteredByGlob("./projects/**/*.md");
});
eleventyConfig.addCollection('searchIndex', (collectionApi) => {
const result = collectionApi.getAll().map(item => {