chore: ads post

This commit is contained in:
Cory Dransfeldt 2023-05-23 09:01:57 -07:00
parent 4f8f032a25
commit 98ad50f265
No known key found for this signature in database
4 changed files with 57 additions and 6 deletions

View file

@ -1,4 +1,3 @@
const { getFirstAttachment } = require('../../config/filters')
const md = require('markdown-it')()
const striptags = require('striptags')
@ -21,7 +20,7 @@ module.exports = {
description: (data) => striptags(md.render(data.post_excerpt)),
url: (data) => data.url,
image: {
src: (data) => data.post | getFirstAttachment,
src: '/assets/img/social-card.png',
},
author: {
name: 'Cory Dransfeldt',