docker-grav icon indicating copy to clipboard operation
docker-grav copied to clipboard

Themes do not work except Quark

Open adrianzhang opened this issue 3 years ago • 5 comments

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

adrianzhang avatar Jul 20 '21 02:07 adrianzhang

Tried quark theme?

rhukster avatar Jul 20 '21 02:07 rhukster

Tried quark theme?

Quark is perfect.

adrianzhang avatar Jul 20 '21 02:07 adrianzhang

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.

rhukster avatar Jul 20 '21 03:07 rhukster

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.

adrianzhang avatar Jul 20 '21 05:07 adrianzhang

Also please read this (Twig section):

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

mahagr avatar Jul 20 '21 06:07 mahagr