diff --git a/_includes/new/cast.html b/_includes/new/cast.html index b05599e..f12919f 100644 --- a/_includes/new/cast.html +++ b/_includes/new/cast.html @@ -1,34 +1,16 @@

Stay up to date

diff --git a/_plugins/podcast_helper.rb b/_plugins/podcast_helper.rb new file mode 100644 index 0000000..6b788e9 --- /dev/null +++ b/_plugins/podcast_helper.rb @@ -0,0 +1,15 @@ +module Jekyll + module PodcastHelper + # Format of a title: + # #001 - Some sweet title + def grab_episode_number(full_title) + full_title[0..4] + end + + def grab_title_only(full_title) + full_title[7..-1] + end + end +end + +Liquid::Template.register_filter(Jekyll::PodcastHelper) diff --git a/podcast/index.html b/podcast/index.html index 1a09fba..c43c4dd 100644 --- a/podcast/index.html +++ b/podcast/index.html @@ -5,7 +5,8 @@ layout: podcast
- {% for episode in site.podcasts reversed %} + {% assign sorted_podcasts = site.podcasts | reverse %} + {% for episode in sorted_podcasts %}