Remove mustache/handlebars dependency by switching to ES6 template literals

This commit is contained in:
Ludwig Schubert
2017-08-09 16:47:35 -07:00
parent 9fe826447b
commit 07c7527734
10 changed files with 98 additions and 760 deletions
+3 -3
View File
@@ -167,17 +167,17 @@ export class FrontMatter {
// 'Sept',
get publishedMonth() {
return months[data.publishedDate.getMonth()];
return months[this.publishedDate.getMonth()];
}
// 8,
get publishedDay() {
return data.publishedDate.getDate();
return this.publishedDate.getDate();
}
// '09',
get publishedMonthPadded() {
return zeroPad(data.publishedDate.getMonth() + 1);
return zeroPad(this.publishedDate.getMonth() + 1);
}
// '08',