前言在上一篇 hexo blog 建立 中,我们完成了 Hexo 博客从零到上线的全过程。本篇将在此基础上,安装和配置安知鱼(AnZhiYu)主题,让博客更加美观和个性化。
.video-container {
position: relative;
width: 100%;
padding-top: 56.25%;
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
1. 安装安知鱼主题1.1. 下载主题在博客根目录下,通过 Git 克隆安知鱼主题:
1git clone https://github.com/anzhiyu-c/hexo-theme-anzhiyu themes/anzhiyu
1.2. 安装必要依赖安知鱼主题需要一些额外的渲染器,确认 package.json 中已包含以下依赖:
1npm install hexo-renderer-pug hex ...
前言Hexo 是一个快速、简洁且高效的博客框架,基于 Node.js,支持 Markdown 语法。搭配 GitHub Pages 或 Cloudflare Pages 可以实现零成本搭建个人博客。
本教程将从零开始,教你搭建一个属于自己的个人博客网站。
.video-container {
position: relative;
width: 100%;
padding-top: 56.25%;
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
1. 准备工作1.1. 需要准备的东西
GitHub 账号:用于托管博客代码(必须)
域名:非必须,可使用 GitHub 提供的 <用户名>.github.io 免费域名
Cloudflare 账号:非必须,用于 CDN 加速和绑定自定义域名
1.2. 安装 Node.jsHexo 基于 Node.js,需要先安 ...



