Closed cldellow closed 8 months ago
I was able to create /app/routes/blog/index.mdx
and have it render at https://hikeratlas.com/blog/
When I tried to create /app/routes/blog/foo.mdx
, it 404s at https://hikeratlas.com/blog/foo (and https://hikeratlas.com/blog/foo/)
Same thing if I create /app/routes/blog/foo/index.mdx
, so I must be missing something. I hate magic when it doesn't work. :(
Using /app/routes/blog._index.mdx
and /app/routes/blog.mapping-overview.mdx
seems to work. (/app/routes/blog/_index.mdx
and /app/routes/blog/mapping-overview.mdx
does not work.)
I don't understand it, I don't like it, but it works, so good enough for now.
I'd like to write up some notes on things I've learned along the way to help out other folks, see https://github.com/hikeratlas/basemap/issues/9 for things I encountered while creating a basemap.
I imagine I'll encounter other things when doing an interactive webapp (eg: enumerating trails as complete trails, computing elevation profiles, client-side routing) and a native app (eg: expo vs native).
Can we graft a /blog/ route onto the site? Simpler is better.
I considered:
Let's try to get MDX support in Remix working. It should "just work", and allow interactive blog pages.