Awesome frontmatter (#617)

Live Frontmatter Templates
This commit is contained in:
Zef Hemel
2024-01-04 20:08:12 +01:00
committed by GitHub
parent 9040993232
commit 91027af5fe
53 changed files with 646 additions and 342 deletions
+12
View File
@@ -40,5 +40,17 @@ export function handlebarHelpers() {
nextWeek.setDate(nextWeek.getDate() + 7);
return niceDate(nextWeek);
},
ifEq: function (v1: any, v2: any, options: any) {
if (v1 === v2) {
return options.fn(this);
}
return options.inverse(this);
},
ifNeq: function (v1: any, v2: any, options: any) {
if (v1 !== v2) {
return options.fn(this);
}
return options.inverse(this);
},
};
}