-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: source data from RSS
- Loading branch information
Showing
22 changed files
with
1,804 additions
and
1,022 deletions.
There are no files selected for viewing
9 changes: 3 additions & 6 deletions
9
packages/gatsby-theme-podcast/content/episodes/01-pilot/pilot.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<div align="center"> | ||
|
||
Hosts: Jane Doe & John Doe | ||
|
||
Cover Art: Jessica Doe | Music: James Doe | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 12 additions & 15 deletions
27
packages/gatsby-theme-podcast/src/components/Description.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
import React from "react"; | ||
import { StaticQuery, graphql } from "gatsby"; | ||
import { MDXRenderer } from "gatsby-plugin-mdx"; | ||
import { useStaticQuery, graphql } from "gatsby"; | ||
// import { MDXRenderer } from "gatsby-plugin-mdx"; | ||
|
||
const query = graphql` | ||
query getDescription { | ||
mdx(fileAbsolutePath: { regex: "/content/fragments/description/" }) { | ||
id | ||
body | ||
# mdx(fileAbsolutePath: { regex: "/content/fragments/description/" }) { | ||
# id | ||
# body | ||
# } | ||
rssFeedInfo { | ||
description | ||
} | ||
} | ||
`; | ||
|
||
const PodcastDescription = () => ( | ||
<StaticQuery | ||
query={query} | ||
render={data => { | ||
return <MDXRenderer>{data.mdx.body}</MDXRenderer>; | ||
}} | ||
/> | ||
); | ||
|
||
export default PodcastDescription; | ||
export default () => { | ||
const data = useStaticQuery(query); | ||
return <p>{data.rssFeedInfo.description}</p>; | ||
}; |
Oops, something went wrong.