Skip to content

Commit

Permalink
Added manual pages to last mod tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerldixon committed Nov 29, 2024
1 parent a7f6869 commit 80ce6e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/page_modification_tracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 80ce6e4

Please sign in to comment.