diff --git a/blog/before_build.py b/blog/before_build.py
new file mode 100644
index 00000000..52b7a5b9
--- /dev/null
+++ b/blog/before_build.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import io
+from github import Github
+
+g = Github("e62e298b2a46ca5cf474cb9a4c0c1bc950b09d46")
+
+with io.open("layouts/partials/recent-updates.html", 'w', encoding='utf8') as recent_updates:
+ recent_updates.truncate()
+
+ recent_updates.write(u"
\n")
+
+ for pr in g.search_issues("is:merged", repo="phil-opp/blog_os", type="pr", label="relnotes")[:5]:
+ link = '' + pr.title + " "
+ iso_date = pr.closed_at.isoformat()
+ readable_date = pr.closed_at.strftime("%b %d")
+ datetime = '
")
diff --git a/blog/layouts/partials/recent-updates.html b/blog/layouts/partials/recent-updates.html
index 1e4e07e7..e69de29b 100644
--- a/blog/layouts/partials/recent-updates.html
+++ b/blog/layouts/partials/recent-updates.html
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/layouts/partials/recent-updates.html b/layouts/partials/recent-updates.html
deleted file mode 100644
index 8b137891..00000000
--- a/layouts/partials/recent-updates.html
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/requirements.txt b/requirements.txt
index 521459ea..67c329ff 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,2 +1,3 @@
pygments
pygments-github-lexers
+PyGithub