Frontmatter getters comments

This commit is contained in:
Will Boyd
2024-02-24 08:00:23 -05:00
parent b75827a055
commit 815e67f135
6 changed files with 9 additions and 3 deletions
+1
View File
@@ -2,6 +2,7 @@ const luxon = require('luxon');
const settings = require('../settings');
// get post date, optionally formatted as specified in settings
module.exports = (post) => {
const dateTime = luxon.DateTime.fromRFC2822(post.data.pubDate[0], { zone: 'utc' });