Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gatsby-node.js adding alternative creator from RSS feed #6

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# Gatsby Theme Simplecast

### [→ Preview](https://gatsby-theme-simplecast.netlify.com)

<img src="https://cl.ly/c53006ad1d5d/ezgif.com-optimize%252520(1).gif" />
# Gatsby Theme Podcast

## Running demo
- `yarn`
- `yarn workspace demo develop`

## Using theme
- [Read me →](https://github.com/vojtaholik/gatsby-theme-simplecast/blob/master/gatsby-theme-simplecast/README.md)
- `yarn workspace example develop`
Binary file removed demo/content/episodes/1/guest.png
Binary file not shown.
13 changes: 0 additions & 13 deletions demo/content/episodes/1/index.md

This file was deleted.

Binary file removed demo/content/episodes/2/banner.png
Binary file not shown.
Binary file removed demo/content/episodes/2/guest.png
Binary file not shown.
12 changes: 0 additions & 12 deletions demo/content/episodes/2/index.md

This file was deleted.

Binary file removed demo/content/episodes/3/banner.png
Binary file not shown.
Binary file removed demo/content/episodes/3/guest.png
Binary file not shown.
14 changes: 0 additions & 14 deletions demo/content/episodes/3/index.md

This file was deleted.

Binary file removed demo/content/episodes/4/banner.png
Binary file not shown.
10 changes: 0 additions & 10 deletions demo/content/episodes/4/index.md

This file was deleted.

Binary file removed demo/content/episodes/5/banner.png
Binary file not shown.
9 changes: 0 additions & 9 deletions demo/content/episodes/5/index.md

This file was deleted.

Binary file removed demo/content/episodes/6/banner.png
Binary file not shown.
9 changes: 0 additions & 9 deletions demo/content/episodes/6/index.md

This file was deleted.

Binary file removed demo/content/episodes/7/banner.png
Binary file not shown.
9 changes: 0 additions & 9 deletions demo/content/episodes/7/index.md

This file was deleted.

Binary file removed demo/content/episodes/8/banner.png
Binary file not shown.
9 changes: 0 additions & 9 deletions demo/content/episodes/8/index.md

This file was deleted.

18 changes: 0 additions & 18 deletions demo/gatsby-config.js

This file was deleted.

20 changes: 0 additions & 20 deletions demo/package.json

This file was deleted.

This file was deleted.

16 changes: 0 additions & 16 deletions demo/src/gatsby-plugin-theme-ui/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions demo/src/pages/404.js

This file was deleted.

56 changes: 0 additions & 56 deletions demo/src/pages/index.js

This file was deleted.

9 changes: 0 additions & 9 deletions demo/src/pages/page-2.js

This file was deleted.

18 changes: 18 additions & 0 deletions example/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
siteMetadata: {
title: `沙發男孩/Sofa Boys`,
description: `嘿!在我們的沙發上找個位子吧,泡杯咖啡,聽聽故事。兩位曾經以沙發為家的男孩,分享年少輕狂的創業經驗,或是毫不起眼的人生煩惱。坐穩囉,我們即將帶你來一趟專屬的沙發衝浪!`,
author: `@sofa-boys`,
},
plugins: [
{
resolve: '@sofa-boys/gatsby-theme-podcast',
options: {
rssUrl: 'https://anchor.fm/s/1e73d5fc/podcast/rss',
disqusShortName: 'sofa-boys',
spotifyUrl: 'https://open.spotify.com/show/1tqXpnVZoVSlsXdxvwDa6C',
googlePodcastsUrl: 'https://www.google.com/podcasts?feed=aHR0cHM6Ly9hbmNob3IuZm0vcy8xZTczZDVmYy9wb2RjYXN0L3Jzcw==',
},
},
],
};
18 changes: 18 additions & 0 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"private": true,
"name": "example",
"version": "1.0.0",
"license": "MIT",
"scripts": {
"develop": "gatsby develop",
"build": "gatsby build",
"serve": "gatsby serve",
"clean": "gatsby clean"
},
"dependencies": {
"@sofa-boys/gatsby-theme-podcast": "*",
"gatsby": "^2.21.0",
"react": "^16.13.1",
"react-dom": "^16.13.1"
}
}
9 changes: 9 additions & 0 deletions gatsby-theme-podcast/.babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
presets: ['babel-preset-gatsby'],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
['@babel/plugin-proposal-pipeline-operator', { proposal: 'minimal' }],
],
};
29 changes: 29 additions & 0 deletions gatsby-theme-podcast/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
extends: ['airbnb', 'prettier', 'prettier/babel', 'prettier/react'],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
env: {
es6: true,
browser: true,
node: true,
},
plugins: ['prettier'],
rules: {
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
optionalDependencies: false,
peerDependencies: false,
},
],
'react/prop-types': ['off'],
'prettier/prettier': 'error',
},
};
File renamed without changes.
4 changes: 4 additions & 0 deletions gatsby-theme-podcast/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
singleQuote: true,
trailingComma: 'all',
};
File renamed without changes.
34 changes: 34 additions & 0 deletions gatsby-theme-podcast/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Gatsby Theme Podcast

## Usage

1. Install the theme

```
npm install --save @sofa-boys/gatsby-theme-podcast
```

1. Add the theme to your `gatsby-config.js`:

```
module.exports = {
plugins: [
{
resolve: '@vojtaholik/gatsby-theme-simplecast',
options: {
rssUrl: PODCAST_RSS_URL,
},
},
],
}
```

1. Start your site

```
gatsby develop
```

1. Customize

See [Shadowing in Gatsby Themes](https://www.gatsbyjs.org/docs/themes/shadowing/) for details.
Loading