diff --git "a/2024/03/06/\344\275\277\347\224\250Hexo + Github Pages\346\220\255\345\273\272\344\270\252\344\272\272\345\215\232\345\256\242/index.html" "b/2024/03/06/\344\275\277\347\224\250Hexo + Github Pages\346\220\255\345\273\272\344\270\252\344\272\272\345\215\232\345\256\242/index.html" index f2eb549..61e2069 100644 --- "a/2024/03/06/\344\275\277\347\224\250Hexo + Github Pages\346\220\255\345\273\272\344\270\252\344\272\272\345\215\232\345\256\242/index.html" +++ "b/2024/03/06/\344\275\277\347\224\250Hexo + Github Pages\346\220\255\345\273\272\344\270\252\344\272\272\345\215\232\345\256\242/index.html" @@ -18,7 +18,7 @@ toggle.addEventListener('click', () => { localStorage.dark = !(html.dataset.dark == 'true'); html.dataset.dark = localStorage.dark; -});

使用Hexo + Github Pages搭建个人博客

安装Node.js和Hexo

因为Hexo需要Node.js生成,所以先安装Node.js

+});

使用Hexo + Github Pages搭建个人博客

安装Node.js和Hexo

因为Hexo需要Node.js生成,所以先安装Node.js

1
2
3
brew install node 
node -v
npm -v #包管理器

安装hexo (全局安装可能需要管理员权限,npm前加sudo)

@@ -53,4 +53,4 @@

\ No newline at end of file +
配置Hexo博客主题和页面功能
\ No newline at end of file diff --git "a/2024/03/09/\351\205\215\347\275\256Hexo\345\215\232\345\256\242\344\270\273\351\242\230\345\222\214\351\241\265\351\235\242\345\212\237\350\203\275/index.html" "b/2024/03/09/\351\205\215\347\275\256Hexo\345\215\232\345\256\242\344\270\273\351\242\230\345\222\214\351\241\265\351\235\242\345\212\237\350\203\275/index.html" index e315401..6610d71 100644 --- "a/2024/03/09/\351\205\215\347\275\256Hexo\345\215\232\345\256\242\344\270\273\351\242\230\345\222\214\351\241\265\351\235\242\345\212\237\350\203\275/index.html" +++ "b/2024/03/09/\351\205\215\347\275\256Hexo\345\215\232\345\256\242\344\270\273\351\242\230\345\222\214\351\241\265\351\235\242\345\212\237\350\203\275/index.html" @@ -18,7 +18,7 @@ toggle.addEventListener('click', () => { localStorage.dark = !(html.dataset.dark == 'true'); html.dataset.dark = localStorage.dark; -});

配置Hexo博客主题和页面功能

更换主题

安装Maupassant主题和渲染器 (每个主题安装会有区别,可以参考具体的文档)

+});

配置Hexo博客主题和页面功能

更换主题

安装Maupassant主题和渲染器 (每个主题安装会有区别,可以参考具体的文档)

1
2
3
git clone https://github.com/tufu9441/maupassant-hexo.git themes/maupassant  
npm install hexo-renderer-pug --save
npm install hexo-renderer-sass --save

编辑Hexo目录下的 _config.yml,将theme的值改为maupassant

@@ -57,4 +57,4 @@

\ No newline at end of file +
\ No newline at end of file diff --git a/tags/index.html b/tags/index.html index c968034..f13b539 100644 --- a/tags/index.html +++ b/tags/index.html @@ -18,4 +18,4 @@ toggle.addEventListener('click', () => { localStorage.dark = !(html.dataset.dark == 'true'); html.dataset.dark = localStorage.dark; -}); \ No newline at end of file +}); \ No newline at end of file