From 6f14cc83af7a5c09a9ab4a554def1143f40fd99b Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 9 Jun 2017 15:46:16 +0200 Subject: [PATCH] Adjust recent-updates generation for gutenberg --- blog/before_build.py | 4 ++-- blog/templates/index.html | 2 +- blog/templates/recent-updates.html | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 blog/templates/recent-updates.html diff --git a/blog/before_build.py b/blog/before_build.py index 52b7a5b9..7af7d1d4 100644 --- a/blog/before_build.py +++ b/blog/before_build.py @@ -4,9 +4,9 @@ import io from github import Github -g = Github("e62e298b2a46ca5cf474cb9a4c0c1bc950b09d46") +g = Github() -with io.open("layouts/partials/recent-updates.html", 'w', encoding='utf8') as recent_updates: +with io.open("templates/recent-updates.html", 'w', encoding='utf8') as recent_updates: recent_updates.truncate() recent_updates.write(u"