docs: clarify where to put self-defined variant stylesheets #366

This commit is contained in:
Sören Weber 2022-11-05 13:10:39 +01:00
parent 5efdd8db6e
commit 542bd276f1
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 4 additions and 2 deletions

View file

@ -82,7 +82,7 @@ If you want to switch the syntax highlighting theme together with your color var
### Roll your own ### 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 ### Output formats

View file

@ -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'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 %}} {{% notice note %}}
This only works in modern browsers. This only works in modern browsers.