Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible alongside with blogs #3

Open
opluan opened this issue Nov 25, 2024 · 3 comments
Open

Incompatible alongside with blogs #3

opluan opened this issue Nov 25, 2024 · 3 comments
Labels
🚧 config Configuration file updates ⏫ enhancement New feature or request ❓ question Further information is requested

Comments

@opluan
Copy link

opluan commented Nov 25, 2024

Hi, i'm building a mixed blog-portifolio-lectures site, and trying to use this project as a separator between portifolio and lectures. It's working almost exactly as intended.

I'm using both this pluggin and starlight-blog.

But 'cause of Sidebar.astro override, that both uses it can't work, leading me to choose between each other.

I'm not a front-end dev, so i really don't know how to navigate those waters, do you know if it's possible, or i'll need to have two diferent apps?

@trueberryless
Copy link
Member

Hello!

Thank you for your feedback on the plugin!

I do think it's possible to write a custom override for the Sidebar.astro in your case, but let me take a look first. If it's possible I'll create a PR in your repo if I can find it...

@trueberryless
Copy link
Member

As it turns out, combining those two plugins is quite a difficult case... Component composition in Starlight plugins is generally speaking complex at the moment, but in this case, the blog creates custom routes (without being categorized into a topic) which results in a page that throws an error because no topic could be found...

@trueberryless
Copy link
Member

I have created a repository, which cheeses the solution, so you can start directly using both plugins together:

Note that the cheese just copies all the lib files and components into your own repo:

image

However, I really recommend waiting until further development in withastro/starlight#2390 because this would solve the issue for the end user, by simplifying overrides which can then be used without the cheese in the repo provided above.

@trueberryless trueberryless added 🚧 config Configuration file updates ⏫ enhancement New feature or request ❓ question Further information is requested labels Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚧 config Configuration file updates ⏫ enhancement New feature or request ❓ question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants