module

Hwaro::Content::DiscoveryPages

Instance methods

dedupe_by_url(pages : Array(Models::Page)) : Array(Models::Page)

Deduplicate by URL, keeping the page the build actually wrote: the render phase resolves an output-URL collision in source-path sort order, first claim wins (render.cr#compute_output_url_winners), so the winner is the page whose path sorts FIRST. Original list order is preserved.

Source
reject_excluded!(pages : Array(Models::Page), exclude : Array(String)) : Array(Models::Page)

Drop pages whose URL equals an excluded path or lives under an excluded prefix. Exclude entries may omit the leading slash.

Source