博客园 <=> hexo
下载源码:https://github.com/MakerGYT/cnblogs-theme-next/releases/tag/v0.1.0
打开后台
选择博客皮肤为custom,勾选禁用模板css,申请js权限将三个文件内容分别复制入相应区域(页首、页尾、定制css)在选项中勾选首页仅列出标题与摘要,控件显示勾选公告通过随笔写文章,填写摘要和标签后发布。(可选),由于无法在首页获取头像,如需正常显示,手动在foot.html头部配置avatar(可在头像设置上传后右键头像获取链接)下列色值参考了Ant Design2
/*custom.css*/ :root { --primary-color:#027AFF;/* 全局主色*/ --body-bg-color: #f5f7f9; /*页面背景色*/ --content-bg-color: #fff; /*页面内容背景色*/ --heading-color: rgba(0, 0, 0, 0.85); /* 标题色 */ --text-color: #353535; /*主文本色*/ --text-color-secondary:rgba(0, 0, 0, 0.45);/*次文本色*/ --text-color-grey:rgba(0, 0, 0, 0.25); /*失效色,无需关注色*/ --link-color: #555; /*链接色*/ --code-bg-color:#f0f0f0; /*代码块背景色*/ }可通过devtools调试来选择预览
对编辑器类型没有要求,但建议使用markdown编辑器,语法可参考github3,实际编辑规范可参考另一篇文章4
开源地址:https://github.com/MakerGYT/cnblogs-theme-next MIT © MakerGYT
stevenjoezhang.Next-theme documentation[EB/OL].https://theme-next.js.org/ .2020 ↩︎
Ant design.定制主题[EB/OL].https://ant.design/docs/react/customize-theme-cn .2020 ↩︎
Github.Mastering Markdown[EB/OL].https://guides.github.com/features/mastering-markdown/ .2014 ↩︎
MakerGYT.排版规约[EB/OL].https://www.cnblogs.com/makergyt/p/12673064.html .2020 ↩︎