mirror of
https://github.com/wassname/template.git
synced 2026-07-31 12:51:00 +08:00
Remove mustache/handlebars dependency by switching to ES6 template literals
This commit is contained in:
+3
-3
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user