Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
a.korotaev2 committed Aug 8, 2017
2 parents 7d72800 + f5b0398 commit ba9cec4
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 17 deletions.
5 changes: 2 additions & 3 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ module.exports = {
title: 'SPB Frontend Drinkcast',
description: 'Подкаст питерского сообщества фронтендеров SPB Frontend',
siteUrl: 'http://spb-frontend.ru/podcast/',
image_url: 'http://spb-frontend.ru/podcast_cover2x.png',
image_url: 'http://spb-frontend.ru/podcast_cover.png',
feed_url: 'http://spb-frontend.ru/podcast.xml',
language: 'ru',
author: 'SPB Frontend',
categories: ['Professional'],
categories: ['Technology'],
explicit: false
}
},
Expand Down Expand Up @@ -70,7 +70,6 @@ module.exports = {
duration
explicit
length
file
}
}
}
Expand Down
10 changes: 8 additions & 2 deletions plugins/plugin-feed/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ exports.onPostBuild = function () {
href: feed.image_url
}
} }, { 'itunes:category': [{ _attr: {
text: 'Professional'
text: 'Technology'
} }] }];

// console.log(feed)
Expand All @@ -102,7 +102,13 @@ exports.onPostBuild = function () {
_attr: {
href: i.image
}
} }, { 'itunes:duration': i.duration }];
} }, { 'itunes:duration': i.duration }, { 'enclosure': {
_attr: {
type: 'audio/mpeg',
url: i.link,
length: i.length
}
} }];

// console.log(i)

Expand Down
16 changes: 8 additions & 8 deletions plugins/plugin-feed/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ exports.onPostBuild = async ({ graphql }, pluginOptions) => {
}},
{'itunes:category': [
{_attr: {
text: 'Professional'
text: 'Technology'
}},
]},
]
Expand All @@ -81,13 +81,13 @@ exports.onPostBuild = async ({ graphql }, pluginOptions) => {
}
}},
{'itunes:duration': i.duration},
// {'enclosure': {
// _attr: {
// type: 'audio/mp3',
// url: i.file,
// length: i.length,
// }
// }}
{'enclosure': {
_attr: {
type: 'audio/mpeg',
url: i.link,
length: i.length,
}
}}
]

// console.log(i)
Expand Down
3 changes: 1 addition & 2 deletions podcast/drinkcast01.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ title: '12 колонок на пакет мертвеца'
date: '2017-07-16'
image: 'http://spb-frontend.ru/podcast_cover1400.png'
description: ''
link: 'https://goo.gl/btkTtU'
file: 'http://spb-frontend.ru/episodes/SPB Frontend Drinkcast 01.mp3'
link: 'http://goo.gl/btkTtU'
duration: '43:13'
explicit: 'no'
length: '83070974'
Expand Down
3 changes: 1 addition & 2 deletions podcast/drinkcast02.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ title: 'Бойкий Джун - Счастливый Ментор'
date: '2017-08-04'
image: 'http://spb-frontend.ru/images/podcast_cover1400.png'
description: ''
link: 'https://goo.gl/daqfZ3'
file: 'http://spb-frontend.ru/episodes/SPB Frontend Drinkcast 02.mp3'
link: 'http://goo.gl/daqfZ3'
duration: '55:01'
explicit: 'no'
length: '105700535'
Expand Down
Binary file modified static/podcast_cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/podcast_cover2x.png
Binary file not shown.

0 comments on commit ba9cec4

Please sign in to comment.