Note on custom theme
This commit is contained in:
parent
f622b6dfab
commit
a1608c81ef
@ -16,8 +16,8 @@ Make sure the directory you want to use is owned by your webserver user. (www-da
|
|||||||
**With included admin client**
|
**With included admin client**
|
||||||
`sudo -u www-data wget https://getgrav.org/download/core/grav-admin/1.7.32`
|
`sudo -u www-data wget https://getgrav.org/download/core/grav-admin/1.7.32`
|
||||||
|
|
||||||
### Theme Learn2 Customisations
|
## Theme Learn2 Customisations
|
||||||
#### Fix for wonky sidebar
|
### 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.
|
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.
|
My workaround is adding the following CSS to custom.css in the theme's `css` directory.
|
||||||
```css
|
```css
|
||||||
@ -25,7 +25,7 @@ My workaround is adding the following CSS to custom.css in the theme's `css` dir
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
#### Code copy don't copy # or $
|
### Code copy don't copy # or $
|
||||||
This needs to be modified in `js/learn.js`
|
This needs to be modified in `js/learn.js`
|
||||||
Here's the change as well as the surrounding code.
|
Here's the change as well as the surrounding code.
|
||||||
```js
|
```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
|
## Nginx config
|
||||||
```
|
```
|
||||||
server {
|
server {
|
||||||
|
Loading…
Reference in New Issue
Block a user