Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #54 from AIGAdc/upcoming
Browse files Browse the repository at this point in the history
Post Launch Updates
  • Loading branch information
marcusrelacion authored Jun 20, 2022
2 parents 21d2138 + 02a54ae commit f215446
Show file tree
Hide file tree
Showing 92 changed files with 14,293 additions and 14,030 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = tab
indent_style = space
indent_size = 4
insert_final_newline = true

[*.{njk}]
indent_style = tab
indent_style = space
indent_size = 4

[*.{md,toml,yaml,yml}]
Expand Down
20 changes: 10 additions & 10 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@ const {
} = require("luxon");
const yaml = require("js-yaml");

module.exports = function(eleventyConfig) {
module.exports = function (eleventyConfig) {
// 11ty Data Extension
// To Support .yaml Extension in _data
// You may remove this if you can use JSON
eleventyConfig.addDataExtension("yaml", (contents) => yaml.load(contents));
// Filters
// 11ty Quick Tip: #1 Inline Minified CSS - https://www.11ty.dev/docs/quicktips/inline-css/
eleventyConfig.addFilter("cssmin", function(code) {
eleventyConfig.addFilter("cssmin", function (code) {
return new CleanCSS({}).minify(code).styles;
});
// This filter can be applied to a njk variable and will render the time as: 12:00 PM
eleventyConfig.addFilter("dateTime", (dateObj) => {
return DateTime.fromJSDate(dateObj, {
zone: "America/New_York",
})
zone: "America/New_York",
})
.setLocale("en")
.toLocaleString(DateTime.TIME_SIMPLE);
});
eleventyConfig.addFilter("readableEventDate", (dateObj) => {
return DateTime.fromJSDate(dateObj, {
zone: "America/New_York",
})
zone: "America/New_York",
})
.setLocale("en")
.toLocaleString(DateTime.DATE_FULL);
});
eleventyConfig.addFilter("postDate", (dateObj) => {
return DateTime.fromJSDate(dateObj, {
zone: "America/New_York",
})
zone: "America/New_York",
})
.setLocale("en")
.toISODate();
});
Expand All @@ -53,7 +53,7 @@ module.exports = function(eleventyConfig) {
eleventyConfig.setFrontMatterParsingOptions({
excerpt: true
});
eleventyConfig.addFilter("md", function(content = "") {
eleventyConfig.addFilter("md", function (content = "") {
return markdownIt({
html: true
}).render(content);
Expand All @@ -66,7 +66,7 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addPassthroughCopy("./source/static/styles/app.css");

// Transforms
eleventyConfig.addTransform("htmlmin", function(content, outputPath) {
eleventyConfig.addTransform("htmlmin", function (content, outputPath) {
// Eleventy 1.0+: use this.inputPath and this.outputPath instead
if (outputPath && outputPath.endsWith(".html")) {
let minified = htmlmin.minify(content, {
Expand Down
12 changes: 6 additions & 6 deletions .pa11yci.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"defaults": {
"runners": [
"axe",
"htmlcs"
]
}
"defaults": {
"runners": [
"axe",
"htmlcs"
]
}
}
Loading

0 comments on commit f215446

Please sign in to comment.