]> id.pley.net Git - pod.git/commitdiff
Adopt jekyll as a static site builder
authorJer Noble <jer.noble@apple.com>
Sun, 8 May 2022 04:04:39 +0000 (21:04 -0700)
committerJer Noble <jer.noble@apple.com>
Sun, 8 May 2022 04:04:39 +0000 (21:04 -0700)
.gitignore [new file with mode: 0644]
Gemfile [new file with mode: 0644]
_config.yml [new file with mode: 0644]
_layouts/episode.html [new file with mode: 0644]
index.md [new file with mode: 0644]
sf/.htaccess [deleted file]
sf/_posts/2022-4-11-Hi-Sheryl.md [new file with mode: 0644]
sf/_posts/2022-4-22-Reply-Guys.md [new file with mode: 0644]
sf/feed.xml
sf/index.html [deleted file]
sf/index.md [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..f40fbd8
--- /dev/null
@@ -0,0 +1,5 @@
+_site
+.sass-cache
+.jekyll-cache
+.jekyll-metadata
+vendor
diff --git a/Gemfile b/Gemfile
new file mode 100644 (file)
index 0000000..0e6f09e
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,35 @@
+source "https://rubygems.org"
+# Hello! This is where you manage which Jekyll version is used to run.
+# When you want to use a different version, change it below, save the
+# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
+#
+#     bundle exec jekyll serve
+#
+# This will help ensure the proper Jekyll version is running.
+# Happy Jekylling!
+gem "jekyll", "~> 4.2.2"
+# This is the default theme for new Jekyll sites. You may change this to anything you like.
+gem "minima", "~> 2.5"
+# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
+# uncomment the line below. To upgrade, run `bundle update github-pages`.
+# gem "github-pages", group: :jekyll_plugins
+# If you have any plugins, put them here!
+group :jekyll_plugins do
+  gem "jekyll-feed", "~> 0.12"
+end
+
+# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
+# and associated library.
+platforms :mingw, :x64_mingw, :mswin, :jruby do
+  gem "tzinfo", "~> 1.2"
+  gem "tzinfo-data"
+end
+
+# Performance-booster for watching directories on Windows
+gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
+
+# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
+# do not have a Java counterpart.
+gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
+
+gem "webrick", "~> 1.7"
diff --git a/_config.yml b/_config.yml
new file mode 100644 (file)
index 0000000..b60835d
--- /dev/null
@@ -0,0 +1,21 @@
+title: RJS Pod
+author: Ruchi Jer & Scott
+email: pod@rjspod.live
+description: Ruchi & Jer explain stuff to Scott
+baseurl: "/"
+url: "https://rjspod.live"
+
+# Build settings
+theme: minima
+plugins:
+  - jekyll-feed
+
+# Podcast Feed Settings
+podcast:
+  title:          "RJS SF Pod"
+  email:          sf@rjspod.live
+  description:    "Ruchi and Jer explain weird SF politics to Scott."
+  url:            https://rjspod.live/sf
+  lang:           en-us
+  author:         "RJS SF Pod"
+  copyright:      "&#x2117; &amp; &#xA9; 2022"
diff --git a/_layouts/episode.html b/_layouts/episode.html
new file mode 100644 (file)
index 0000000..2fce471
--- /dev/null
@@ -0,0 +1,9 @@
+---
+layout: default
+---
+<h6>{{ page.date | date_to_string: "ordinal", "US" }}</h6>
+<h2>{{ page.title }}</h2>
+<p>{{ page.summary }}</p>
+<audio preload="metadata" class="episode" controls src="{{ page.file }}"></audio>
+<br />
+<p>{{ content }}</p>
\ No newline at end of file
diff --git a/index.md b/index.md
new file mode 100644 (file)
index 0000000..16f9b65
--- /dev/null
+++ b/index.md
@@ -0,0 +1,8 @@
+---
+# Feel free to add content and custom Front Matter to this file.
+# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
+
+layout: default
+title: RJS
+---
+[RJS SF Pod](sf)
\ No newline at end of file
diff --git a/sf/.htaccess b/sf/.htaccess
deleted file mode 100644 (file)
index 8174e11..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Redirect 301 /rjs-sf-pod.xml /feed.xml
\ No newline at end of file
diff --git a/sf/_posts/2022-4-11-Hi-Sheryl.md b/sf/_posts/2022-4-11-Hi-Sheryl.md
new file mode 100644 (file)
index 0000000..a8dae13
--- /dev/null
@@ -0,0 +1,15 @@
+---
+layout: episode
+title: "Hi Sheryl!"
+type: podcast
+date: 2022-4-11 22:00:00
+file: https://archive.org/download/rjssfpod-episode1/rjssfpod-episode1.mp3
+file_itunes: https://archive.org/download/rjssfpod-episode1/rjssfpod-episode1.mp3
+excerpt: "Ruchi and Jer discuss SF's redistricting fracas, as well as SF's role in California's math policy fracas."
+summary: "Ruchi and Jer discuss SF's redistricting fracas, as well as SF's role in California's math policy fracas."
+duration: "1:07:14"
+length: "56478621"
+explicit: "clean"
+block: "no"
+keywords: "sf, politics, education"
+---
diff --git a/sf/_posts/2022-4-22-Reply-Guys.md b/sf/_posts/2022-4-22-Reply-Guys.md
new file mode 100644 (file)
index 0000000..42ad3fb
--- /dev/null
@@ -0,0 +1,15 @@
+---
+layout: episode
+title: "AD17, Reply Guys, and the grand Unifying Theory of Dating in SF"
+type: podcast
+date: 2022-4-22 22:00:00
+file: https://archive.org/download/recording-1_postproductions_2022-04-24-t10-19-41pm-final-mix/recording-1_postproductions_2022-04-24-t10-19-41pm-final-mix.mp3
+file_itunes: https://archive.org/download/recording-1_postproductions_2022-04-24-t10-19-41pm-final-mix/recording-1_postproductions_2022-04-24-t10-19-41pm-final-mix.mp3
+excerpt: "Ruchi, Jer, and scott discuss the recent assembly election, the impact of social media on SF politics, and why dating in SF is so damned hard."
+summary: "Ruchi, Jer, and scott discuss the recent assembly election, the impact of social media on SF politics, and why dating in SF is so damned hard."
+duration: "1:16:37"
+length: "64364541"
+explicit: "clean"
+block: "no"
+keywords: "sf, politics, education"
+---
index b185b2bdf004e2ac4aa585e84e0f3f3c7801e281..fbc334f8675acd9996cc988c537900cf13470461 100644 (file)
@@ -1,92 +1,49 @@
+---
+title: ""
+---
 <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom"
     xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
     xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
     <channel>
 <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom"
     xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
     xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
     <channel>
-        <atom:link href="https://rjspod.live/sf/feed.xml" rel="self" type="application/rss+xml" />
-        <title>RJS SF Pod</title>
-        <link>https://rjspod.live/sf</link>
-        <description>Ruchi and Jer explain weird SF politics to Scott.</description>
-        <managingEditor>sf@rjspod.live (Podcast)</managingEditor>
-        <webMaster>webmaster@rjspod.live (Webmaster)</webMaster>
-        <language>en-us</language>
-        <copyright>Copyright (C) 2022 RJS Pod. All Rights Reserved.</copyright>
-        <pubDate>Mon, 11 Apr 2022 02:00:00 GMT</pubDate>
-        <lastBuildDate>Mon, 11 Apr 2022 02:00:00 GMT</lastBuildDate>
+        <atom:link href="{{ site.url }}/sf/feed.xml" rel="self" type="application/rss+xml" />
+        <title>{{ site.podcast.title }}</title>
+        <link>{{ site.podcast.url }}/sf</link>
+        <description>{{ site.podcast.escription | xml_escape }}</description>
+        <managingEditor>{{ site.podcast.email }} ({{ site.podcast.author }})</managingEditor>
+        <webMaster>{{ site.podcast.email }} ({{ site.podcast.author }})</webMaster>
+        <language>{{ site.podcast.lang }}</language>
+        <copyright>Copyright (C) {{ site.time | date: "%Y" }} {{ site.author }}. All Rights Reserved.</copyright>
+        <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
+        <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
         <image>
         <image>
-            <url>https://rjspod.live/RJS_pod_1400x1400.jpg</url>
-            <title>RJS SF Pod</title>
-            <link>https://rjspod.live/sf</link>
+            <url>{{ site.podcast.url }}/RJS_pod_1400x1400.jpg</url>
+            <title>{{ site.podcast.title }}</title>
+            <link>{{ site.podcast.url }}/sf</link>
         </image>
         <docs>http://www.rssboard.org/rss-specification</docs>
         </image>
         <docs>http://www.rssboard.org/rss-specification</docs>
-        <itunes:author>RJS SF Pod</itunes:author>
+        <itunes:author>{{ site.podcast.title }}</itunes:author>
         <itunes:explicit>clean</itunes:explicit>
         <itunes:explicit>clean</itunes:explicit>
-        <itunes:image href="http://rjspod.live/RJS_pod_1400x1400.jpg"/>
+        <itunes:image href="{{ site.url }}/RJS_pod_1400x1400.jpg"/>
         <itunes:owner>
         <itunes:name><![CDATA[RJS Pod]]></itunes:name>
         <itunes:owner>
         <itunes:name><![CDATA[RJS Pod]]></itunes:name>
-                <itunes:email>sf@rjspod.live (Podcast)</itunes:email>
+                <itunes:email>{{ site.email }} (Podcast)</itunes:email>
         </itunes:owner>
         <itunes:category text="News">
             <itunes:category text="Politics"/>
         </itunes:category>
         </itunes:owner>
         <itunes:category text="News">
             <itunes:category text="Politics"/>
         </itunes:category>
-        <item>
-            <title>Hi Sheryl!</title>
-            <link>https://rjspod.live/sf/episode/1/</link>
-            <description>
-                Ruchi and Jer discuss SF's redistricting fracas, as well as SF's role in California's math policy fracas.
-            </description>
-            <guid isPermaLink="true">https://rjspod.live/sf/episode/1/</guid>
-            <pubDate>Mon, 11 Apr 2022 02:00:00 GMT</pubDate>
-            <media:content
-                medium="audio"
-                url="https://archive.org/download/rjssfpod-episode1/rjssfpod-episode1.mp3"
-                type="audio/mpeg"
-                isDefault="true"
-                expression="full"
-                duration="4034">
-                <media:title type="plain">Hi Sheryl!</media:title>
-                <media:description>
-                    Ruchi and Jer discuss SF's redistricting fracas, as well as SF's role in California's math policy fracas.
-                </media:description>
-                <media:rating scheme="urn:simple">adult</media:rating>
-                <media:thumbnail url="https://rjspod.live/RJS_pod.jpg"/>
-                <media:keywords>
-                    sf, politics, education
-                </media:keywords>
-            </media:content>
-            <enclosure url="https://archive.org/download/rjssfpod-episode1/rjssfpod-episode1.mp3" length="56478621" type="audio/mpeg"/>
-            <itunes:image href="http://rjspod.live/RJS_pod_1400x1400.jpg"/>
-            <itunes:explicit>clean</itunes:explicit>
-            <itunes:duration>1:07:14</itunes:duration>
-        </item>
-        <item>
-            <title>AD17, Reply Guys, and the grand Unifying Theory of Dating in SF</title>
-            <link>https://rjspod.live/sf/episode/2/</link>
-            <description>
-                Ruchi, Jer, and scott discuss the recent assembly election, the impact of social media on SF politics, and why dating in SF is so damned hard.
-            </description>
-            <guid isPermaLink="true">https://rjspod.live/sf/episode/2/</guid>
-            <pubDate>Mon, 25 Apr 2022 02:00:00 GMT</pubDate>
-            <media:content
-                medium="audio"
-                url="https://archive.org/download/recording-1_postproductions_2022-04-24-t10-19-41pm-final-mix/recording-1_postproductions_2022-04-24-t10-19-41pm-final-mix.mp3"
-                type="audio/mpeg"
-                isDefault="true"
-                expression="full"
-                duration="4597">
-                <media:title type="plain">AD17, Reply Guys, and the grand Unifying Theory of Dating in SF</media:title>
-                <media:description>
-                    Ruchi, Jer, and scott discuss the recent assembly election, the impact of social media on SF politics, and why dating in SF is so damned hard.
-                </media:description>
-                <media:rating scheme="urn:simple">adult</media:rating>
-                <media:thumbnail url="https://rjspod.live/RJS_pod.jpg"/>
-                <media:keywords>
-                    sf, politics, education, dating
-                </media:keywords>
-            </media:content>
-            <enclosure url="https://archive.org/download/recording-1_postproductions_2022-04-24-t10-19-41pm-final-mix/recording-1_postproductions_2022-04-24-t10-19-41pm-final-mix.mp3" length="64364541" type="audio/mpeg"/>
-            <itunes:image href="http://rjspod.live/RJS_pod_1400x1400.jpg"/>
-            <itunes:explicit>clean</itunes:explicit>
-            <itunes:duration>1:16:37</itunes:duration>
-        </item>
+{% for post in site.posts %}        <item>
+            <title>{{ post.title | xml_escape }}</title>
+            <link>{{ site.podcast.url }}{{ post.url }}</link>
+            <description>{{ post.excerpt | xml_escape }}</description>
+            <guid isPermaLink="true">{{ site.podcast.url }}{{ post.url }}</guid>
+            <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
+            <enclosure url="http:{{ post.file }}" length="{{ post.length }}" type="audio/mp3"/>
+            <itunes:author>{{ site.podcast.author }}</itunes:author>
+            <itunes:summary>{{ post.summary | xml_escape }}</itunes:summary>
+            <itunes:duration>{{ post.duration }}</itunes:duration>
+            <itunes:keywords>{{ post.keywords }}</itunes:keywords>
+            <itunes:image href="{{ site.url }}/images/itunes.png" />
+            <itunes:explicit>{{ post.explicit }}</itunes:explicit>
+        </item>{% endfor %}
     </channel>
 </rss>
     </channel>
 </rss>
diff --git a/sf/index.html b/sf/index.html
deleted file mode 100644 (file)
index 5923b11..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-       <meta charset="utf-8">
-       <meta name="viewport" content="width=device-width, initial-scale=1">
-       <link type="application/rss+xml" rel="alternate" title="RJS SF Pod" href="https://rjspod.live/sf/feed.xml"/>
-       <title>RJS SF Pod</title>
-</head>
-<body>
-       <iframe src="https://embed.podcasts.apple.com/us/podcast/rjs-sf-pod/id1618816537?itsct=podcast_box_player&amp;itscg=30200&amp;ls=1&amp;theme=auto" height="450px" frameborder="0" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation-by-user-activation" allow="autoplay *; encrypted-media *;" style="width: 100%; max-width: 660px; overflow: hidden; border-radius: 10px; background-color: transparent;"></iframe>
-       <div>
-               <a href="https://podcasts.apple.com/us/podcast/rjs-sf-pod/id1618816537?itsct=podcast_box_badge&amp;itscg=30200&amp;ls=1" style="display: inline-block; overflow: hidden; border-radius: 7px; width: 125px; height: 42px;"><img src="https://tools.applemediaservices.com/api/badges/listen-on-apple-podcasts/standard-black/en-us?size=250x83&amp;releaseDate=1649642400&h=673b22f3fcca2c52bcf8b92b05f0355f" alt="Listen on Apple Podcasts" style="border-radius: 7px; width: 125px; height: 42px;"></a>
-       </div>
-</body>
-</html>
\ No newline at end of file
diff --git a/sf/index.md b/sf/index.md
new file mode 100644 (file)
index 0000000..f27ba64
--- /dev/null
@@ -0,0 +1,15 @@
+---
+layout: default
+title: The SF Pod
+---
+<a href="https://podcasts.apple.com/us/podcast/hi-sheryl/id1618816537?i=1000559151780&amp;itsct=podcast_box_badge&amp;itscg=30200&amp;ls=1"><img src="https://tools.applemediaservices.com/api/badges/listen-on-apple-podcasts/badge/en-us?size=125x42&amp;releaseDate=1649642400&h=48caad9b127eccfd126eec24930359a5" alt="Listen on Apple Podcasts" style="border-radius: 6px; width: 125px; height: 42px;"></a>
+
+# Latest Episodes
+
+{% assign episodes = site.posts | where: "type", "podcast" %}
+
+{% for episode in episodes %}
+## [{{ episode.title }}]({{ episode.url }})
+###### _{{ episode.date | date_to_string: "ordinal", "US" }}_
+{{ episode.summary }}
+{% endfor %}