Closed jackdomleo7 closed 4 years ago
Take a look at the programmatic usage part in the nuxt content docs đ
That could help!
Of course, thank you!!
I stumbled into another issue where the error was cdata.replace is not a function
. I finally resolved this by removing content: post.body
- no idea why it worked but it did đ
@jackdomleo7 what you did, you just removed content from your feed
you could fetch your content by passing text: true
option ($content(..., { text: true })
), and then converting it into HTML using something like https://github.com/nuxt/markdown
const content = (await md.toMarkup(article.text)).html
Had the same error, cdata.replace is not a function
in my case the title of my post had an individual number (as I was testing) which somehow was breaking the feed. I just added additional strings so the title was considered a string which fixed the issue in my case.
I currently have a blog on my website that is generated with nuxt/content. I've been trying o add nuxt/feed with this configuration:
When serving the website locally, it fails with
ERROR this.$content is not a function
. However, the nuxt/content documentation states that this method is the way to fetch the content.Can you offer any guidance? Thank you in advance!!