sommerregen / grav-plugin-themer Goto Github PK
View Code? Open in Web Editor NEWThis plugin enables you use different themes on one site individual set per page or collection.
License: Other
This plugin enables you use different themes on one site individual set per page or collection.
License: Other
Is it possible to switch between a Gantry based theme and standard theme?
hi, i read the document but i can not understand how to use it yet.
you say in document: copy themer.yaml file and change it. so if i have three page: home, blog, gallery and if i want to use theme1 for home, theme2 for blog and theme3 for gallery page how can i do it?
is it possible with themer plugin.
Hello,
After adding themer: false
to a page frontmatter, nothing changed.
Should I clean the cache in the site? Browser?
Regards,
Camps
Hey @Sommerregen ,
I use GPM's direct-install
command to pin each plugin to a specific version so that my continuous integration pipeline produces more consistent builds. However, for some reason using direct-install
with Themer results in a silent failure - GPM claims that it has installed the plugin successfully, but nothing is added to user/plugins
.
Here's the command I'm running:
bin/gpm direct-install -y https://getgrav.org/download/plugins/themer/1.1.0
And the output I get:
Preparing to install https://getgrav.org/download/plugins/themer/1.1.0
|- Downloading package... 100%
|- Extracting package... ok
|- Checking destination... ok
|- Installing package... ok
'- Success!
I've confirmed that using GPM's install
command does install Themer normally, so I don't expect this to be an issue specific to my environment... but who knows!
I get the follwing error message, if I activate the plugin under Grav v1.1.5 inside my Admin Plugin and go to /admin/pages (Admin v1.2.2).
Twig_Error_Runtime An exception has been thrown during the rendering of a template ("FilesystemIterator::__construct(/home/my-user-name/www/grav/user/themes/multiverse/templates/modular): failed to open dir: No such file or directory") in "pages.html.twig" at line 124.
I'm using latest version of Grav and themer seems to break various things and usually display incorrect.
The plugin doesn't working anymore when debugging is enabled:
Class 'Grav\Common\Twig\TraceableTwigEnvironment' not found
TraceableTwigEnvironment has been removed in grav 0.9.43 (commit getgrav/grav@66d5eab 14 Sep 2015), however themer is still using it (themer.php line 96):
// Update TwigCollector for DebugBar
if ($enabled && $debug) {
$twig->twig = new TraceableTwigEnvironment($twig->twig)
I started using Themer fairly recently to setup Learn2 as the theme of a specific part of my website. While googling for how to setup both Themer and Learn2 I found this answer on Discourse saying that, when using Themer, only the default theme can be inherited.
Because this was back in 2016 I wanted to know if it is already possible for several themes to be inherited.
Thanks.
Hi,
I find that per-page theme is a pretty useful feature.
Given that the implementation itself seems quite lean and that it didn't needed update since 2016, I wonder if there have been any attempt to upstream the feature?
Wouldn't Grav benefit from having this out-of-the-box?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.