theme-particlex / hexo-theme-particlex

A concise Hexo theme, based on Particle.
MIT License
410 stars 56 forks source link

从网上查到说提交PR,是这样吗? #45

Closed LynxCatTheThird closed 1 year ago

LynxCatTheThird commented 1 year ago

做出的修改:

  1. 修改 _config.yml 、css\particlex_dark.css 和 css\particlex_light.css 以支持亮暗色
  2. 修改 layout\script.ejs 、layout\post.ejs 和 _config.yml 以支持 Twikoo
  3. 修改 layout\footer.ejs 和 layout\layout.ejs 添加不蒜子和一言的支持

某些地方更新不是很到位,辛苦您了

LynxCatTheThird commented 1 year ago

呃,不行吗?不行我就取消了。。。

LynxCatTheThird commented 1 year ago

。。。

argvchs commented 1 year ago

刚看到,可是。。

这。。。

config 改成自己的了

image

删除字体?

image

highlight.js showimg.js 其实已经合并到 function.js 里了。。

image

消失的空格

image
argvchs commented 1 year ago

应该是先 Fork 一下,重新 clone 一份你 Fork 的仓库,然后更改 这样没有自定义的内容了(如修改的 _config.yml 和字体),再 Pull Request

Fork 后的仓库名称应该还是 hexo-theme-particlex不会重名

目录结构应该是这样

<root> # hexo blog folder
|---themes
|   |---particlex # theme (custom)
|   |---particlex-dev # theme (develop)
|---_config.yml # site config

假设一切操作都在 <root> 执行

git clone git@github.com:lynxcatthethird/hexo-theme-particlex.git themes\particlex-dev

或者不用 SSH,用 HTTPS

git clone https://github.com/lynxcatthethird/hexo-theme-particlex.git themes\particlex-dev

把 Hexo 的 _config.yml 设置主题为 particlex-dev 就可以了

这样你就可以在 particlex-dev 更改,运行 hexo s 测试

修改完就可以上传远程分支

cd themes\particlex-dev
git add .
git commit -m "something..."
git push

然后 Pull Request

LynxCatTheThird commented 1 year ago

过了几天,改的更多了。 麻烦等个三五天我转移一下,到时候再PR。