Comments (2)
I think I got it working with gatsby-plugin-feed-mdx though I am not sure if I am misusing it. The only issue is that the plugin creates entries for "Ghost Post" and creates untitled entries based on some of the other layout pages.
{
resolve: `gatsby-plugin-feed-mdx`,
options: {
query: `
{
site {
siteMetadata {
siteTitle
siteDescription
siteUrl
site_url: siteUrl
}
}
}
`,
feeds: [
{
serialize: ({ query: { site, allMdx } }) => {
return allMdx.edges.map(edge => {
return Object.assign({}, edge.node.frontmatter, {
description: edge.node.excerpt,
date: edge.node.frontmatter.date,
url: site.siteMetadata.siteUrl + edge.node.fields.slug
});
});
},
query: `
{
allMdx(
sort: { order: DESC, fields: [frontmatter___date] },
) {
edges {
node {
excerpt
html
fields { slug }
frontmatter {
title
date
}
}
}
}
}
`,
output: "/rss.xml",
title: "Site title here"
}
]
}
}
from gatsby-theme-chronoblog.
I think I got it working with gatsby-plugin-feed-mdx though I am not sure if I am misusing it. The only issue is that the plugin creates entries for "Ghost Post" and creates untitled entries based on some of the other layout pages.
This is something I want to add to my site as well. Is it possible to filter on the draft
and hide
fields of frontmatter so that the query doesn't return any posts if either field is false?
from gatsby-theme-chronoblog.
Related Issues (20)
- Trouble updating banner.png HOT 4
- Make an easy way to access post data from post-footer.mdx HOT 6
- Commenting solution HOT 4
- `getItemYear` does not handle locale properly HOT 3
- Have You considered Adding a Version that Works with Netlify CMS ? HOT 2
- How do I create a new component?
- How do I add/edit the CSS? HOT 4
- Ability to select multiple tags at a time? HOT 4
- Getting error when running gatsby build! HOT 9
- Won't load local file GIF in md or mdx blog file HOT 1
- Local copy of theme with updated plugins?
- Component _____ was not imported, exported, or provided by MDXProvider as global scope HOT 3
- gatsby components not getting mounted in build on github pages with actions HOT 2
- <a> cannot appear as a descendant of <a>
- -webkit-appearance is not supported by theme-ui sx property
- The demo stopped working HOT 5
- How can I add pagination? HOT 2
- Remove related posts from any post HOT 2
- How to Remove Search, Tag Cloud & Additional Posts in a Blog Post HOT 2
- Upgrade gatsby version with related dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-theme-chronoblog.