fix: swap dependencies

This commit is contained in:
Cory Dransfeldt 2023-05-22 13:20:15 -07:00
parent af83966c20
commit f507dcdc3b
No known key found for this signature in database
3 changed files with 8 additions and 94 deletions

View file

@ -1,6 +1,6 @@
const { getFirstAttachment } = require('../../config/filters')
const md = require('markdown-it')()
const str = require('string-strip-html')
const striptags = require('striptags')
module.exports = {
eleventyComputed: {
@ -18,7 +18,7 @@ module.exports = {
},
language: 'en-US',
title: (data) => data.title,
description: (data) => str.stripHtml(md.render(data.post_excerpt)).result,
description: (data) => striptags(md.render(data.post_excerpt)),
url: (data) => data.url,
image: {
src: (data) => data.post | getFirstAttachment,