代码拉取完成,页面将自动刷新
一款基于 Alto 定制而来的 Ghost 干净、简洁主题,支持黑暗模式以及自适应屏幕宽度
样式查看: https://blog.melove.net
简单说明下使用方式,以及开发定制实现
克隆当前新项目到 ghost
的 themes
目录下,然后在 ghost
管理后台,修改主题就行了
如果网站 logo 图在深色模式下无法识别,可以在Code injection > Site Header
字段中设置白色版本的logo
<script>
var gh_white_logo = 'https://example.com/content/images/white-logo.png';
</script>
样式使用 Gulp/PostCSS 编译以填充未来的 CSS 规范。您需要全局安装 Node、Yarn 和 Gulp。之后,从主题的根目录:
Styles are compiled using Gulp/PostCSS to polyfill future CSS spec. You'll need Node, Yarn and Gulp installed globally. After that, from the theme's root directory:
# 安装依赖
yarn
# 运行构建并监听变化,方便本地调试
$ yarn dev
# zip 命令将主题文件打包到 `dist/<theme-name>.zip` 中,然后可以将其上传到自己的站点
yarn zip
Copyright (c) 2013-2021 Ghost Foundation - Released under the MIT license.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。