-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
16 lines (14 loc) · 511 Bytes
/
index.js
File metadata and controls
16 lines (14 loc) · 511 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// @ts-check
import getCollectionNewestGitCommitDate from "./src/getCollectionNewestGitCommitDate.js";
import getGitCommitDateFromPath from "./src/getGitCommitDateFromPath.js";
export default function (eleventyConfig) {
eleventyConfig.addAsyncFilter(
"getGitCommitDateFromPath",
getGitCommitDateFromPath,
);
eleventyConfig.addAsyncFilter(
"getCollectionNewestGitCommitDate",
getCollectionNewestGitCommitDate,
);
}
export { getCollectionNewestGitCommitDate, getGitCommitDateFromPath };