-
Notifications
You must be signed in to change notification settings - Fork 0
Discovery
Getting the word about Peels out there, beyond manual community outreach.
Community and business listings are made public to search engines and signed out users, both visually and via meta
tag properties in the document head
. Residential listings are kept private since they are almost always people’s homes, and their hosts often use their real name alongside their listing.
A new sitemap.xml is generated each time the Peels Next.js app is built, via the sitemap()
function in sitemap.js
. In short, it:
- Goes through each (currently visible) listing
- Excludes residential listings
- Adds them to the sitemap definition alongside the static pages
This sitemap is referenced in robots.txt
to make it slightly easier for search engines to pick up.
The lastModified
value for the listings is currently using the listing.created_at
value. Ideally this would instead use a yet-to-exist updated_at
column.