-
Notifications
You must be signed in to change notification settings - Fork 2
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
Typhoon --> child template --> Twig \ Error \ RuntimeError #50
Comments
Hi @anico-sy, The error seems to indicate you have a wrong hex color defined for your primary color, what’s the value you are using? |
Hi Screenshot before change: Where can be a primary color? Thanks in advance |
or do I have to copy the |
OK.... I see already the problem. I copied the typhoon.yaml Question: Which files I have to copy from the typhoon to the child? Thanks |
That is actually normal behavior for child themes. The configuration YAML is critical for the theme and not inherited. It should be copied to the cold theme per the documentation: https://learn.getgrav.org/17/themes/customization#inheriting-using-the-cli |
Hi then I got the than but than I got the error I think, there is still a misfunction of the inherit function. Do you have an idea what is the issue? |
It sounds like your theme didn’t get setup properly with inheritance. If you used the devtools approach everything should just work out of the box. It does for me in my test child theme. Perhaps you can zip up your child theme and attach it and I can take a look? |
Hi Thanks! |
Ok I don't think you used the streams:
schemes:
theme:
type: ReadOnlyStream
prefixes:
'':
- user/themes/anico
- user/themes/typhoon
enabled: true # Enable the theme
production: false # production | development (compiled or development version of css)
append_site_title: true # Append Site Title to HTML Title
custom_logo: # Will be used instead of default Grav logo
custom_logo_strip_svg_style: false
.... Then it should work |
Hi |
I just created the theme from devtools: ➜ bin/plugin devtools new-theme
Enter Theme Name:
> Anico
Enter Theme Description:
> Anico - Typhoon Child Theme
Enter Developer Name:
> Anico
Enter GitHub ID (can be blank):
>
Enter Developer Email:
> xxxxxxxx
Please choose an option:
[pure-blank ] Basic Theme using Pure.css
[inheritance] Inherit from another theme
[copy ] Copy another theme
> inheritance
Please choose a theme to extend:
[0] bootstrap4
[1] quark
[2] typhoon
[3] typhoon-copy
> 2
SUCCESS theme Anico -> Created Successfully
Path: /xxx/xxxx/xxxx/grav/user/themes/anico Here's the resulting theme zipped up. |
Hi |
Apologies, it does seem like there's something wrong with the devtools process. It created the I just tested and that fixed the problem. |
Fixed devtools to address this.. will be available soon |
Hi |
Hi
I created a Custom Theme with the Typhoon-Theme (licenced)
According to:
https://getgrav.org/premium/typhoon/docs#create-a-custom-theme-from-typhoon
activated it in the admin tool
Delete cache in the admin tool
now I have a
Twig \ Error \ RuntimeError
An exception has been thrown during the rendering of a template ("HEX
color needs to be 6 or 3 digits long").
see https://www.anico.ch/issue/
Anybody knows what is the reason for this issue?
Thanks and best regards
Bernhard
The text was updated successfully, but these errors were encountered: