Skip to content

📑 Powerful, elegant and modern Hexo theme, forked from hexo-theme-stellar.

License

Notifications You must be signed in to change notification settings

abc1763613206/hexo-theme-stellaris

 
 

Repository files navigation

📑 Stellaris - 强大、优雅、现代的 Hexo 主题

这是由 @abc1763613206 修改的 hexo-theme-stellaris 版本,目前作为 blog.hanlin.press 的主题使用。

由于该主题重构后与上游的差异较大,因此之后的上游同步更新将通过 cherry-pick 拉取,并不再提供直接的无缝迁移兼容支持,请关注 _config.yml 的变更。

主要修改:

  • 迁移部分静态资源到本地
  • 同步部分 stellar 上游特性
  • 添加新标签特性

对于本主题的安装方式,请在 clone 环节参考如下命令:

git submodule add https://github.com/abc1763613206/hexo-theme-stellaris.git themes/stellaris
cd themes/stellaris
# 由于引入了第三方库为子模块,需要进一步初始化主题中的子模块
git submodule update --init --recursive

如果您博客的主要读者群体为中国大陆用户,请在自己博客根目录的主题配置文件(即 _config.stellaris.yml )中参考 _config.cn.yml 进行以 npmmirror 为主体的镜像源配置。请注意该配置文件仅为差分配置,请勿直接用其替换原配置文件(即 _config.yml)。

因为本主题自用性质较强,因此不会过度考虑跨版本兼容性的问题,如您在追版本更新时发现错误,请自检是否发生了配置文件变更。


hexo-theme-stellaris 分叉自 hexo-theme-stellar,基于hexo-renderer-jsx,支持丰富的标签和动态数据组件。

本主题目前已不再活跃维护,并不再同步 Stellar 的新功能特性。如对追新有需求,请使用上游 Stellar 主题,或在 issue 中提交需要使用的新功能。

安装

  • 环境需求
    Hexo: 5.4.0 ~ 6.3.0
    hexo-cli: 4.3.0 ~ latest
    node.js: 14.17.3 ~ 18.12.0
    npm: 6.14.13 ~ 8.19.2
    

使用 Git 安装

  • 安装依赖

    npm install react react-dom hexo-renderer-jsx html-react-parser --save
    npm install node-fetch@2 --save
    // bilicard 插件所需
  • 将主题安装为子模块

    git submodule add https://github.com/chiyuki0325/hexo-theme-stellaris.git themes/stellaris

使用 npm 安装

npm install hexo-theme-stellaris --save

安装好后,在 config.yml 中添加 theme: stellaris

更新

使用 Git

git submodule update --remote --merge

使用 npm

npm update hexo-theme-stellaris

文档

点此查看 Stellaris 主题文档。

也可以适当参考 原主题文档,或对照配置文件的注释。

Telegram Instant View

本主题编写了模板以适配 Telegram Instant View。

你可以在此获取模板,并且查阅官方文档以了解如何在你的博客中使用。

About

📑 Powerful, elegant and modern Hexo theme, forked from hexo-theme-stellar.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.1%
  • Stylus 30.9%