From 6990faa7ecd658c384e573b3018a48d848c1bdbc Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Wed, 10 Jun 2026 10:28:07 +1000 Subject: [PATCH] fix: valid feed.xml entity handling, repoint python-lectures redirect Two pre-existing bugs found while verifying the GitHub Actions deploy migration (#199): - feed.xml truncated post content *after* escaping it, slicing XML entities like " in half and producing an invalid feed. Reorder to strip_html | truncate | escape so truncation happens on plain text and escaping is applied last. - /python-lectures/ redirected to /projects/#filter=lecture, a page that has never existed (404). Point it at /lectures/, where the lecture series are listed today. Co-Authored-By: Claude Fable 5 --- feed.xml | 2 +- pages/python-lectures.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/feed.xml b/feed.xml index 51d26d5d..d12670b8 100644 --- a/feed.xml +++ b/feed.xml @@ -17,7 +17,7 @@ layout: null {{ post.url | prepend: site.url }} - {{ post.content | escape | truncate: '400' }} + {{ post.content | strip_html | truncate: 400 | escape }} {{ post.date | date_to_rfc822 }} diff --git a/pages/python-lectures.md b/pages/python-lectures.md index cf38b811..79992721 100644 --- a/pages/python-lectures.md +++ b/pages/python-lectures.md @@ -1,7 +1,7 @@ --- title: 'Quantitative Economics with Python' permalink: /python-lectures/ -redirect_to: https://quantecon.org/projects/#filter=lecture +redirect_to: https://quantecon.org/lectures/ menu_item: false ---