djangocon / 2024.djangocon.us

🫐 The DjangoCon US 2024 conference website
https://2024.djangocon.us
Other
3 stars 23 forks source link

Add sitemap.xml #5

Closed jefftriplett closed 5 months ago

mtrythall commented 6 months ago

Have one here now: https://2024.djangocon.us/sitemap.xml

Pretty basic. LMK if it should do more.

Note that the generation is a little clunky. We exclude /presenters/ which are speaker cards, for obvious reasons. If there are more exceptions we'll want to move some logic elsewhere.

mtrythall commented 6 months ago

Assigning to @jefftriplett to confirm and close, since he filed.

jefftriplett commented 6 months ago

I'm surprised they don't have a built-in way of doing these. Then again, https://www.11ty.dev/sitemap.xml gives me a 404.

Is it possible to keep the sitemap: false frontmatter that we had before? To clarify, the default is to include everything unless sitemap: false is set?

We used that quite a bit to control when certain pages get released, and it was a Jekyll/GitHub Pages built in behavior.

jefftriplett commented 6 months ago

I think we'll need that opt-out on a page by page basis.

Depending on how the schedule is structured, we tend to have lots of noise from pages that are filler that don't need to be in a sitemap.

We run into this with the alternative homepages with the coming soon and recap pages too.

mtrythall commented 5 months ago

Sounds good. I'll wire this up.

mtrythall commented 5 months ago

sitemap: false does the trick.