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

Themes do not work except Quark #46

Open
adrianzhang opened this issue Jul 20, 2021 · 5 comments
Open

Themes do not work except Quark #46

adrianzhang opened this issue Jul 20, 2021 · 5 comments

Comments

@adrianzhang
Copy link

I am new to Grav, set it up and running with docker image, by following instructions in Readme.

docker run -d -p 8000:80 --restart always -v grav_data:/var/www/html grav:latest

Once I add a theme and activate new theme, it showing lots of code on the site page like below, how can I fix the problem? Thanks.

截屏2021-07-20 上午10 05 32

@rhukster
Copy link
Member

Tried quark theme?

@adrianzhang
Copy link
Author

Tried quark theme?

Quark is perfect.

@adrianzhang adrianzhang changed the title Themes do not work instead of Quark Themes do not work except Quark Jul 20, 2021
@rhukster
Copy link
Member

Then not a docker issue. Probably either the theme has an issue or the theme you installed doesn’t have the template your page is using. Themes in grav can provide their own set of templates, and that means your page has to use threat template.

default.md uses templates/default.html.twig
blog.md uses templates/blog.html.twig

Etc.

@adrianzhang
Copy link
Author

Then not a docker issue. Probably either the theme has an issue or the theme you installed doesn’t have the template your page is using. Themes in grav can provide their own set of templates, and that means your page has to use threat template.

default.md uses templates/default.html.twig
blog.md uses templates/blog.html.twig

Etc.

Ok I will check the doc for detailed operation. Thank you very much.

@mahagr
Copy link
Member

mahagr commented Jul 20, 2021

Also please read this (Twig section):

https://learn.getgrav.org/17/advanced/grav-development/grav-17-upgrade-guide#twig

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

No branches or pull requests

3 participants