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

Automad v2 template selection problem. #93

Open
pietru2004 opened this issue Mar 24, 2024 · 5 comments
Open

Automad v2 template selection problem. #93

pietru2004 opened this issue Mar 24, 2024 · 5 comments
Labels
question Further information is requested

Comments

@pietru2004
Copy link

Hello I have tried migrating from automad v1 to v2
I get error
obraz
I have only enabled
obraz
I have found that all pages have been set to
obraz
and when I try to change it to something like */post or */project it always seams to go back to Sidebar Left

Console log:
obraz

All http requests seam to end with status code 200

@marcantondahmen
Copy link
Owner

Did you set a main theme in the shared settings?

@marcantondahmen marcantondahmen added the question Further information is requested label Mar 24, 2024
@marcantondahmen
Copy link
Owner

The next release will include an improved migration command that also maps the legacy theme correctly to the standard-v1 package during a migration from v1 to v2. Until then, make sure that the main theme is set correctly to an installed theme and all pages also use that theme instead of the legacy one.

@pietru2004
Copy link
Author

As far as I checked the theme was set correctly... or at least it seams so

@marcantondahmen
Copy link
Owner

Good, let's figure this out. I was actually able to reproduce that error. What helped was

  1. Making sure the standard v1 theme is properly installed in the package manager
  2. Set it as main theme in the shared settings
  3. Changing the templates for all pages to use the * theme

This can also be done easily using a text editor by replacing "theme": "standard/ with "theme": "automad/standard-v1/ in all data files.

The migrate command of the upcoming release will do exactly that.

@pietru2004
Copy link
Author

Gona try that when I get time to seat at pc...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants