Replies: 1 comment 2 replies
-
an inelegant solution would be to do const PageTitle = await import(`${Astro.url.pathname}/PageTitle.astro`) tho that feels like a bad idea |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I don't know the best way to implement this, but it would be cool if shared components, like a header, could access the current route and import files relative to that route. Typically I want to have breadcrumbs and siblings (pages in the same folder) linked from the header menu. Is there some elegant solution for this?
Beta Was this translation helpful? Give feedback.
All reactions