1 Star 0 Fork 0

穿裤衩闯天下 / vmghostalto

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.66 KB
一键复制 编辑 原始数据 按行查看 历史

vmghostalto

一款基于 Alto 定制而来的 Ghost 干净、简洁主题,支持黑暗模式以及自适应屏幕宽度

样式查看: https://blog.melove.net

使用 & 定制

简单说明下使用方式,以及开发定制实现

下载使用

克隆当前新项目到 ghostthemes 目录下,然后在 ghost 管理后台,修改主题就行了

亮色 logo

如果网站 logo 图在深色模式下无法识别,可以在Code injection > Site Header字段中设置白色版本的logo

<script>
    var gh_white_logo = 'https://example.com/content/images/white-logo.png';
</script>

开发定制

样式使用 Gulp/PostCSS 编译以填充未来的 CSS 规范。您需要全局安装 NodeYarnGulp。之后,从主题的根目录:

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

使用的 PostCSS 特性

  • Autoprefixer - 不需要编写任何类型的浏览器前缀,这一切都是自动完成的,支持每个浏览器的2个最新主要版本。

Copyright & License

Copyright (c) 2013-2021 Ghost Foundation - Released under the MIT license.

1
https://gitee.com/lzan13/vmghostalto.git
git@gitee.com:lzan13/vmghostalto.git
lzan13
vmghostalto
vmghostalto
master

搜索帮助