Skip to content

Commit 4aacd11

Browse files
committed
Redesign site with Eleventy and Tailwind
1 parent 736ea9d commit 4aacd11

File tree

110 files changed

+2702
-1691
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+2702
-1691
lines changed

.bundle/config

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eleventy.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
const yaml = require("js-yaml");
2+
3+
module.exports = function(eleventyConfig) {
4+
// Add this line to copy your external assets
5+
eleventyConfig.addPassthroughCopy("src/assets");
6+
// 1. Recognize YAML as a template format
7+
eleventyConfig.addTemplateFormats("yaml");
8+
9+
// 2. Define how to process YAML files
10+
eleventyConfig.addExtension("yaml", {
11+
key: "yaml",
12+
compile: async (inputContent) => {
13+
const data = yaml.load(inputContent);
14+
return async () => {
15+
// This returns the 'content' for the page (the bio)
16+
return data.bio || "";
17+
};
18+
},
19+
getData: async (inputPath) => {
20+
const fs = require("fs/promises");
21+
const content = await fs.readFile(inputPath, "utf-8");
22+
return yaml.load(content);
23+
}
24+
});
25+
26+
// 3. Collection setup
27+
eleventyConfig.addCollection("people", function(collectionApi) {
28+
return collectionApi.getFilteredByGlob("src/users/*.yaml");
29+
});
30+
31+
return {
32+
dir: {
33+
input: "src",
34+
output: "_site",
35+
includes: "_includes"
36+
}
37+
};
38+
};

.gitpod.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 0 additions & 58 deletions
This file was deleted.

404.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

Gemfile

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)