DEV Community

Chloe
Chloe

Posted on

2 1

RSS Help

RSS help needed anyone use it with Gridsome?

I have recently migrated a blog from jeykll to Gridsome which I have deployed through Netlify. I am attempting to setup RSS but I'm unable to get it fully setup. I am using the gridsome-rss-plugin as listed in the Gridsome docs the RSS page is generated fine however I am seeing undefined on the end of the links here node.slug in the config why?
The title of the posts display correctly, but on the end of the URLs I see undefined and I am not sure what I should be targeting to setup this up correctly. I am a newbie to this so may be missing something obvious.

Any help would be much appreciated.

This is what I have in the config:

{
      use: 'gridsome-plugin-rss',
      options: {
        contentTypeName: 'Post',
        feedOptions: {
          title: 'My Dev Blog',
          feed_url: 'https://www.cgweb.co.uk/rss.xml',
          site_url: 'https://www.cgweb.co.uk/'
        },
        feedItemOptions: node => ({
          title: node.title,
          description: node.description,
          url: 'https://www.cgweb.co.uk/content/posts/' + node.slug
        }),
        output: {
          dir: './static',
          name: 'rss.xml'
        }
      }
    }
Enter fullscreen mode Exit fullscreen mode

Update: I have now fixed this and can need successfully cross post from my blog to here see my other post

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

๐Ÿ‘‹ Kindness is contagious

Please leave a โค๏ธ or a friendly comment on this post if you found it helpful!

Okay