Update README.md
This commit is contained in:
parent
091157b576
commit
99c40c5971
78
README.md
78
README.md
|
@ -394,83 +394,7 @@ other = "태그"
|
|||
|
||||
## Sub Theme
|
||||
|
||||
If you don't like the color that I choose, you can make your own sub theme.
|
||||
|
||||
1. Make your theme file
|
||||
|
||||
```bash
|
||||
root
|
||||
├── assets
|
||||
│ ├── sass
|
||||
│ │ ├── themes
|
||||
│ │ │ ├── _yourtheme.scss
|
||||
```
|
||||
|
||||
```scss
|
||||
assets/sass/themes/_yourtheme.scss
|
||||
$yourtheme: (
|
||||
footer-background-color: #403E41,
|
||||
footer-color: #bdbdbd,
|
||||
link: #FFD866,
|
||||
link-hover: #FF6188,
|
||||
title-color: #ffd866,
|
||||
meta-color: #FCFCFA,
|
||||
....
|
||||
);
|
||||
```
|
||||
|
||||
2. Import your theme file inside _theme.scss file
|
||||
|
||||
```scss
|
||||
@import 'dark';
|
||||
@import 'light';
|
||||
@import 'hacker';
|
||||
@import 'solarized';
|
||||
@import 'yourtheme';
|
||||
|
||||
$themes: (
|
||||
dark: $dark,
|
||||
light: $light,
|
||||
hacker: $hacker,
|
||||
solarized: $solarized,
|
||||
yourtheme: $yourtheme,
|
||||
);
|
||||
```
|
||||
|
||||
3. Edit config file to expose your theme in dropdown component.
|
||||
|
||||
```bash
|
||||
config/_default/params.toml
|
||||
...
|
||||
themeOptions = ["yourtheme", "dark", "light", "hacker", "solarized"]
|
||||
...
|
||||
```
|
||||
|
||||
4. [optional] Add prism file for highlighting code
|
||||
|
||||
```bash
|
||||
root
|
||||
├── assets
|
||||
│ ├── sass
|
||||
│ │ ├── prism
|
||||
│ │ │ ├── _yourtheme.scss
|
||||
```
|
||||
|
||||
```scss
|
||||
// assets/sass/prism/_yourtheme.scss
|
||||
|
||||
.theme__yourtheme {
|
||||
...
|
||||
}
|
||||
|
||||
// assets/sass/prism/_prism.scss
|
||||
|
||||
@import 'dark';
|
||||
@import 'light';
|
||||
@import 'hacker';
|
||||
@import 'solarized';
|
||||
@import 'yourtheme';
|
||||
```
|
||||
I'm editing this part
|
||||
|
||||
## Shortcodes
|
||||
|
||||
|
|
Loading…
Reference in New Issue