设置文章封面背景色
用途当文章没有设置封面(cover:false)时,可设置从指定颜色中随机展示文章页标题背景色和上/下一篇文章背景色
注意:因文章标题背景色有灰度处理,比设置的颜色深
配置配置文件cover下新增节点lump为颜色列表。
123456cover: lump: - "#722ed1" - "#1890ff" - "#FF9E80" - "#7cb305"
配置天气预报
用途可网站导航栏(navbar)显示天气预报插件。其基本配置如下:
配置123456789weather: enable: true # 是否显示天气插件 plugin: qweather # weather / qweather weather: # https://cj.weather.com.cn/plugin/simple # 只需粘贴WIDGET部分 widget: qweather: # https://widget.qweather.com/create-simple/ # 只需粘贴WIDGET部分 widget:
plugin可选值weather或qweather。
weather为中国天气插件平台的网页简约插件,该平台目前暂不可用。
qweather为和风天气开发平台简约版天气插件
weather-中国天气因中国天气插件平台无法使用,使用该选项将报错。
qweather-和风天气
登录 登录/注册和风天气开发平台,并绑定邮箱和手机号。
创建插件 打开https://widget.qweather.com/create- ...
常见问题及解答
如何不显示文章封面当文章设置封面图或默认封面图后,首页等位置将在文章卡片处显示设置的封面图。
若不想该文章显示封面图,可在文章顶部的Front-matter处指定cover: false,示例如下:
123456---title: .........cover: false---
常见错误及解答
Warning: Accessing non-existent property复现使用到本主题或用到了stylus的主题时,执行generate等相关命令,会出现警告如下:
1234567(node:18256) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency(Use `node --trace-warnings ...` to show where the warning was created)(node:18256) Warning: Accessing non-existent property 'column' of module exports inside circular dependency(node:18256) Warning: Accessing non-existent property 'filename' of module exports inside ...
