Hexo入坑指南
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
快速开始111
Create a new post
1 | $ hexo new "My New Post" |
More info: Writing
Run server
1 | $ hexo server |
More info: Server
Generate static files
1 | $ hexo generate |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy |
More info: Deployment
使用主题
Hexo-theme-Redefine reimagines simplicity, speed, and purity, without sacrificing functionality or design. Its sleek, modern aesthetic is packed with useful features, blending style and practicality seamlessly.
Building on the solid foundation of hexo-theme-keep, “Redefine” elevates the style and incorporates valuable writing tools and plugins. It offers extensive customization options, allowing you to tailor every detail to your preferences. With Redefine, your blogging experience becomes unique and effortless, showcasing your personal style and needs.
🌐 Demo
If you are also using Redefine, please go to Redefine Theme Showcase to add your blog link.
⛰️ Features
- Note Module
- Friend Link Page
- Mathjax Support
- Code block language display
- Light/Dark mode switching
- Font Awesome 6.2.1 Pro (contains different styles like Duotone/Regular/Thin/Sharp)
- Drop-down menu
- Customizable footer
- Site Uptime Display
- Article Header Image
- Mermaid JS support
- SEO friendly
- Aplayer support
- Shuoshuo support
- Customizable Font
- Tailwind CSS Included
☁️ Installation
The easiest way to install Theme Redefine is by using npm (after your hexo version has been up to 5.0
+)
1 | $ cd your-hexo-site |
Another method is by git clone
1 | $ cd your-hexo-site |
After the installation, go to the _config.yml
of your hexo site and set
1 | theme: redefine |
⏫ Update
To update hexo-theme-redefine, you can run the same npm command
1 | $ npm install hexo-theme-redefine@latest |
If you installed the theme by git clone, you can update the theme by running the following command
1 | $ cd themes/redefine |
📄 Documentations
Please read Redefine Docs when installing
It’s very easy to understand.
☕ Support
Feel free to pull request and send issues.
If you have any questions, please send an email to contact@ohevan.com. I will reply in time.
Please give me a star to support me, thanks!
Also, if you are using Typora, check out Typora Theme Redefine so that you can preview the styles of your blog in Typora.
💗 Donations
Thanks to all the people who have donated to me. Your support is my greatest motivation.
If you like this theme, please give a star. You can also support me by donating.
This is the list of all the people who have donated to me: Donation List
如果你想要使用OpenAI GPT-4,但不想每月支付 20 美元吗,来看看我的 GPT Plus Share GPT Plus 共享站,使用多达 100 个 ChatGPT Plus 账户,每月仅 17 人民币起步!
🌟 Star History
💻 Development
If you want to contribute to this project, you can clone the dev
branch and check out the Development Docs to get started.
进阶优化
新增文章时自动打开Markdown编辑器
需求:由于每次在使用
hexo n "文章名称"
时还要去打开编辑器,这太麻烦了!我们可以通过一个监听的js
代码去监听hexo
新建文章的命令,并自动打开相应的 Markdown编辑器来实现联动,这样岂不是即方便且优雅!
首先在
hexo/scripts
下新建一个editArticle.js
文件,如果没有scripts
文件可以手动创建一个。在
editArticle.js
文件并写入如下内容即可
1 | const { spawn } = require("child_process"); |
- 标题: Hexo入坑指南
- 作者: JiangWen
- 创建于 : 2022-09-28 11:45:00
- 更新于 : 2024-11-24 17:45:51
- 链接: https://blog.jiangwen.site/2022/09/28/开发学习/Hexo入坑指南/
- 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。