Skip to content

Commit 349faf0

Browse files
committed
ready to use Eleventy for the website i think
2 parents 8a4c94f + 13b88f0 commit 349faf0

Some content is hidden

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

72 files changed

+1717
-4277
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16.13.0
1+
v23.3.0

DOCUMENTATION.md

Lines changed: 17 additions & 0 deletions

website/.eleventy.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// TBH, not 100% what a liquid filter is yet.
2+
3+
// module.exports = function(eleventyConfig) {
4+
5+
// });
6+
// };
7+
8+
module.exports = function (eleventyConfig) {
9+
eleventyConfig.addPassthroughCopy("static/**/*");
10+
// eleventyConfig.addPassthroughCopy("**/*.js");
11+
eleventyConfig.addPassthroughCopy("js");
12+
// add custom Liquid filter named "safe"
13+
eleventyConfig.addFilter("safe", function(content){
14+
return content;
15+
});
16+
17+
eleventyConfig.addFilter("dist_url", function(content){
18+
const PREFIXES = {
19+
'stg': 'https://cdn.knightlab.com/libs/timeline3/dev/',
20+
'prd': 'https://cdn.knightlab.com/libs/timeline3/latest/',
21+
}
22+
let prefix = PREFIXES[process.env.DEPLOY_TARGET] || '/dist/';
23+
return `${prefix}${content}`;
24+
});
25+
26+
return eleventyConfig;
27+
28+
};

website/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
_site
2+

website/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v23.3.0

website/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)