From c210fcfa6542b3d20289de8d1ce7a34b171895c4 Mon Sep 17 00:00:00 2001 From: Spencer Dixon Date: Fri, 29 Nov 2024 10:22:52 +0000 Subject: [PATCH] Added manual pages to last mod tracking --- lib/page_modification_tracker.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/page_modification_tracker.rb b/lib/page_modification_tracker.rb index ee902f7d83..c028f1be05 100644 --- a/lib/page_modification_tracker.rb +++ b/lib/page_modification_tracker.rb @@ -49,7 +49,13 @@ def published_pages ) content_pages = ::Pages::Frontmatter.list.reject { |_path, fm| fm[:draft] } event_pages = events.map { |e| Rails.application.routes.url_helpers.event_path(e.readable_id) }.index_with({}) - content_pages.merge(event_pages) + manual_pages = { + "/events/about-get-into-teaching-events" => {}, + "/events" => {}, + "/mailinglist/signup/name" => {} + } + + content_pages.merge(**event_pages, **manual_pages) end def request_path(path, app, headers)