Skip to content

Instantly share code, notes, and snippets.

@philsturgeon
Last active April 16, 2021 13:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save philsturgeon/4553431 to your computer and use it in GitHub Desktop.
Save philsturgeon/4553431 to your computer and use it in GitHub Desktop.
Octopress iTunes Feed
---
layout: post
title: "Episode 3: ExpressionEngine StackExchange"
date: 2012-12-20 10:47
comments: true
filename: some-file-name-without-extension
length: 52409154
summary: ExpressionEngine Pro Anna Brown and Testing Hero Chris Hartjes join Ben Edmunds and Phil Sturgeon to discuss the recent rumblings in the ExpressionEngine community and the new EE StackExchange site. We talk about Inversion of Control (IoC), what it is, why its useful and how it's done.
---
Bla bla, content, show notes.
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel>
<title><![CDATA[{{ site.title }}]]></title>
<link>{{ site.url }}</link>
<language>en-us</language>
<copyright><![CDATA[{{ site.author | strip_html }}]]></copyright>
<itunes:author><![CDATA[{{ site.author | strip_html }}]]></itunes:author>
<itunes:subtitle><![CDATA[{{ site.subtitle }}]]></itunes:subtitle>
<description><![CDATA[{{ site.description }}]]></description>
<itunes:explicit>no</itunes:explicit>
<itunes:owner>
<itunes:name>Phil Sturgeon</itunes:name>
<itunes:email>email@philsturgeon.co.uk</itunes:email>
</itunes:owner>
<itunes:image href="http://s3.amazonaws.com/phptownhall/logo.png" />
<itunes:category text="Technology">
<itunes:category text="Tech News"/>
</itunes:category>
{% for post in site.posts limit: 20 %}
<item>
<title><![CDATA[{{ post.title | cdata_escape }}]]></title>
<description><![CDATA[{{ post.content | expand_urls: site.url | cdata_escape }}]]></description>
<link>{{ site.url }}{{ post.url }}</link>
<guid>{{ site.url }}{{ post.url }}</guid>
<pubDate>{{ post.date | date_to_rss }}</pubDate>
<itunes:author><![CDATA[{{ site.author | strip_html }}]]></itunes:author>
<itunes:summary><![CDATA[{{ post.summary }}]]></itunes:summary>
<enclosure url="http://s3.amazonaws.com/phptownhall/{{ post.filename }}.mp3" type="audio/mp3" length="{{ post.length }}" />
</item>
{% endfor %}
</channel>
</rss>
def date_to_rss(input)
input.rfc2822
end
@ezpodcast
Copy link

THANK U FOR THIS article.
i have some trouble when i post my podcast,when i test to feed my blog:feed://ezpodcast.github.io/atom.xml,itunes can recognized the podcast name ,but there is no audio appear in the list .

I post it as follows

  ---
  layout: post
  title: "Episode 1:话题不详"
  date: 2013-09-07 23:23
  author: EASY
  filename: Ez%E5%8F%98%E6%80%81%E8%B0%83%E9%A2%91001
  comments: true
  summary: Ez变态调频,猜猜今天的话题
  length: 12381749
  categories: 
  ---

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment