From a1608c81ef8b4f1d86160174f22d1b71d41387e3 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sat, 19 Nov 2022 16:37:15 +0100 Subject: [PATCH] Note on custom theme --- pages/02.linux/grav/default.en.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pages/02.linux/grav/default.en.md b/pages/02.linux/grav/default.en.md index 4edd479..ce3e6f0 100644 --- a/pages/02.linux/grav/default.en.md +++ b/pages/02.linux/grav/default.en.md @@ -16,8 +16,8 @@ Make sure the directory you want to use is owned by your webserver user. (www-da **With included admin client** `sudo -u www-data wget https://getgrav.org/download/core/grav-admin/1.7.32` -### Theme Learn2 Customisations -#### Fix for wonky sidebar +## Theme Learn2 Customisations +### Fix for wonky sidebar With the default configuration, using jquery-scrollbar, there are issues with extremely long subtopics making the bar not scroll all the way to the bottom. My workaround is adding the following CSS to custom.css in the theme's `css` directory. ```css @@ -25,7 +25,7 @@ My workaround is adding the following CSS to custom.css in the theme's `css` dir overflow: auto; } ``` -#### Code copy don't copy # or $ +### Code copy don't copy # or $ This needs to be modified in `js/learn.js` Here's the change as well as the surrounding code. ```js @@ -48,6 +48,13 @@ Here's the change as well as the surrounding code. }); ``` +## Custom theme based on Learn2 +`$ sudo -u www-data /var/www/wiki-grav/bin/plugin devtools new-theme` + +You'll be asked a few questions next +**Important:** when asked to choose an option, choose `inheritance` +With this, an installed theme can be selected as a base + ## Nginx config ``` server {