blob: 2cd725da2bb2710c428b97b69331fec7c2e25802 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
module.exports = class {
data() {
return {
layout: "page",
tags: [
"posts"
]
};
}
render(data) {
return `<small>
<time datetime="${data.page.date.toISOString()}">${data.page.date.toDateString()}</time> - <a rel=author href="${data.metadata.author.url}">${data.metadata.author.name}</a>
</small>
${data.content}`;
}
};
|