Add social page with archived mastodon posts, move source to /site
This commit is contained in:
parent
a301a5cc5e
commit
648869bf76
40 changed files with 58 additions and 2 deletions
12
site/posts/posts.11tydata.cjs
Normal file
12
site/posts/posts.11tydata.cjs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
let data = {
|
||||
layout: "_includes/post.njk",
|
||||
eleventyComputed: {
|
||||
lastModified: function(data) {
|
||||
const fs = require('fs');
|
||||
const stats = fs.statSync(data.page.inputPath);
|
||||
return stats.mtime;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = data;
|
||||
Loading…
Reference in a new issue