mirror of https://github.com/onweru/compose.git

weru
12.34.2021 7f1c7da6d155bc4e8d6b12db8e706db55d4ee434
edit docs #38
1 files modified
28 ■■■■■ changed files
exampleSite/content/docs/compose/customize.md 28 ●●●●● patch | view | raw | blame | history
exampleSite/content/docs/compose/customize.md
@@ -49,4 +49,30 @@
Just put the following line in the `[params]` section in your `config.toml` file (and of course change the color):
````toml
metaThemeColor = "#123456"
````
````
### How do I add custom styles, scripts, meta tags e.t.c
Use hooks. Ideally, you should not override the them directly.
Instead, you should duplicate [these files](https://github.com/chipzoller/hugo-clarity/tree/master/layouts/partials/hooks) at the root of you site directory.
1. layouts/partials/hooks/head.html
2. layouts/partials/hooks/scripts.html
The contents of the first file will be attached just before the `</head>` tag.
The contents of the second file will be attached just before the `</body>` tag.
Alternatively, if you want to use the `config.toml` to track your custom styles or scripts, and them in as an array(s) under `[params]` like so:
```toml
...
[params]
customCSS = [styleURL1, styleURL2 ...]
customJS = [scriptURL1, scriptURL2 ... ]
...
```
### I want to add custom sass