mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
docs: clarify where to put self-defined variant stylesheets #366
This commit is contained in:
parent
5efdd8db6e
commit
542bd276f1
2 changed files with 4 additions and 2 deletions
|
@ -82,7 +82,7 @@ If you want to switch the syntax highlighting theme together with your color var
|
|||
|
||||
### Roll your own
|
||||
|
||||
If you are not happy with the shipped variants you can either copy one of the shipped files, edit them in a text editor and configure the `themeVariant` parameter in your `config.toml` or just use the [interactive variant generator]({{%relref "basics/generator" %}}).
|
||||
If you are not happy with the shipped variants you can either copy and rename one of the shipped files from `themes/hugo-theme-relearn/static/css` to `static/css`, edit them afterwards to your liking in a text editor and configure the `themeVariant` parameter in your `config.toml` or just use the [interactive variant generator]({{%relref "basics/generator" %}}).
|
||||
|
||||
### Output formats
|
||||
|
||||
|
|
|
@ -16,7 +16,9 @@ To better understand this select the `neon` variant and modify the different hea
|
|||
|
||||
Once you've changed a color, the variant switch will show a "My custom variant" entry and your changes are stored in the browser. You can change pages and even close the browser without losing your changes.
|
||||
|
||||
Once you are satisfied, you can download the new variants file and install it in your site.
|
||||
Once you are satisfied, you can download the new variants file and copy it into your site's `static/css` directory. Afterwards you have to adjust the `themeVariant` parameter in your `config.toml` to your chosen file name.
|
||||
|
||||
Eg. if your new variants file is named `theme-my-custom-variant.css`, you have to set `themeVariant='my-custom-variant'` to use it.
|
||||
|
||||
{{% notice note %}}
|
||||
This only works in modern browsers.
|
||||
|
|
Loading…
Reference in a new issue