hexojs / hexo-renderer-stylus

Stylus renderer for Hexo
MIT License
18 stars 19 forks source link

docs: clarify example #52

Closed curbengh closed 4 years ago

curbengh commented 4 years ago
# theme config
color: "#FFCC44"

The config could be confused with the css color property, it's more common a theme dev to define a color name:

moody_red: "#8B0001"
coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling a9cf7398d4d2acae7fce00b14da4048f90b4452f on curbengh:theme-config into 5f12d0e35f4f91c51f4574b0761031bd8f0c8018 on hexojs:master.

stevenjoezhang commented 4 years ago

theme_config is working:

https://github.com/hexojs/hexo/blob/75201130fef4a02f27e239200714d5815f97ee3a/lib/hexo/load_theme_config.js#L27-L31

curbengh commented 4 years ago

I misread the original doc, it does mention "And in your theme's configuration", not "site's configuration".