在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:hexo-theme-arknights开源软件地址:https://gitee.com/yue_plus/hexo-theme-arknights开源软件介绍:hexo-theme-arknights多国语言Readme预览
如果使用了这个主题,欢迎在这儿贴预览链接~ 安装一键下载手动安装根据需要执行以下代码 hexo init Hexocd Hexonpm install -g cnpm --registry=https://registry.npm.taobao.orgcnpm installgit clone https://github.com/Yue-plus/hexo-theme-arknights.git themes/arknights 安装依赖npm 用户: cnpm install hexo-server hexo-browsersync hexo-renderer-pug --save yarn 用户: yarn add hexo-server hexo-browsersync hexo-renderer-pug 修改配置文件
修改资源文件可按需修改
写作
顶部导航栏新建自定义页面
评论系统Valine本主题支持Valine 。请参考 Valine 快速开始 修改 Hexo 目录下的 # Valine 无后端评论系统valine: enable: false app_id: # <APP ID> app_key: # <APP KEY> server_url: # <APP DOMAIN>(LeanCloud 国际版) 开启邮件提醒:zhaojun1998 / Valine-Admin
Gitalk本主题支持 Gitalk 。请参考 gitalk/readme-cn.md 修改 Hexo 目录下的 gitalk: enable: false client_id: # GitHub Application Client ID client_secret: # GitHub Application Client Secret repo: # GitHub repository owner: # GitHub repository owner admin: ["''"] # GitHub repository owner and collaborators (Users who having write access to this repository) # Example: ["'adminA'","'adminB'"] id: # The unique id of the page # Example: location.pathname 数学公式使用 hexo-filter-mathjax Hexo 过滤器来显示数学公式:
# 安装 hexo-filter-mathjax 插件cnpm install hexo-filter-mathjax --save# 清除缓存hexo clean
mathjax: tags: none # 或 'ams' 或 'all' single_dollars: true # 启用单个美元符号作为内联(行内)数学公式定界符 cjk_width: 0.9 # 相对 CJK 字符宽度 normal_width: 0.6 # 相对正常(等宽)宽度 append_css: true # 将 CSS 添加到每个页面 every_page: false # 如果为 true,那么无论每篇文章的前题中的 `mathjax` 设置如何,每页都将由 mathjax 呈现
---title: On the Electrodynamics of Moving Bodiescategories: Physicsdate: 1905-06-30 12:00:00mathjax: true--- 然后,就可以在文章中使用 LaTeX 语法。
-$ \epsilon_0 $+$\epsilon_0$-$ \frac{\partial}{\partial t} $+$\frac{\partial}{\partial t}$
-$\epsilon_0$+$\epsilon\_0$-\begin{eqnarray*}+\begin{eqnarray\*}
图表支持修改 Hexo 目录 下的 # 图表支持 mermaid:- enable: false+ enable: true version: '8.13.5' 主题通过 mermaid-js 绘制各种图表。查看示例 支持:流程图| 序列图| 类图| 状态图| 实体关系图| 用户旅程图| 甘特图| 指令图| 饼图 语法: <div class="mermaid"> graph LR A[Hard edge] -->|Link text| B(Round edge) B --> C{Decision} C -->|One| D[Result one] C -->|Two| E[Result two]</div>
Front-matter除了 Hexo 支持的 Front-matter 还支持: # 文章页右上角发布/更新日期post-info: true/false# 侧边栏的目录post-index: true/false# 打赏框reward: true/false 参与开发开发人员分支说明
搭建开发环境yarn global add hexo-cli yo generator-hexo-theme sassgit clone -b hexo https://github.com/Yue-plus/hexo-theme-arknights.gitcd hexo-theme-arknightsgit clone https://github.com/Yue-plus/hexo-theme-arknights.git themes/arknightsyarn installhexo serve --debug 开发中可能遇见的 BUG 及解决方法运行 ‘hexo serve --debug’ 时,长文章渲染不全这是由热重载插件 参与开发可能需要的文档
支援主题开发喜欢这个主题的话可以:
|
请发表评论