initial commit
This commit is contained in:
commit
611ab6a9c7
12 files changed
+114
No files matched your search
@@ -0,0 +1,20 @@
|
||||
const UTC_LONG = new Intl.DateTimeFormat("en-US", { dateStyle: "long", timeZone: "UTC"});
|
||||
|
||||
export default function (eleventyConfig) {
|
||||
eleventyConfig.addPassthroughCopy({ "src/assets": "assets"});
|
||||
eleventyConfig.addPassthroughCopy({ "src/public": "/" });
|
||||
|
||||
eleventyConfig.addPreprocessor("drafts", "*", (data) => {
|
||||
if (data.draft) return false;
|
||||
});
|
||||
|
||||
eleventyConfig.addFilter("readableDate", (date) => UTC_LONG.format(date));
|
||||
eleventyConfig.addFilter("isoDate", (date) => date.toISOString().slice(0, 10));
|
||||
|
||||
return {
|
||||
dir: { input: "src" },
|
||||
templateFormats: ["md", "njk", "html"],
|
||||
markdownTemplateEngine: "njk",
|
||||
htmlTemplateEngine: "njk"
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user