Shuixiang Li

Results 5 comments of Shuixiang Li

@mzlogin 我基于你的这个主题的设计,使用Bootstrap框架重新开发了一个主题 [light-blog](https://github.com/lynn9388/light-blog),精简和修正了许多你的主题中的问题,现已可通过 [remote_theme](https://github.blog/2017-11-29-use-any-theme-with-github-pages/) 直接应用在 GitHub Pages 里面,同时保证主题和博客内容分离,你或许可以参考一下。

@mzlogin 我是参考 Jekyll 的[文档](https://jekyllrb.com/docs/themes/#understanding-gem-based-themes),通过 `jekyll new-theme` 生成一个模版,然后在其基础上开发的,我认为关键就是在 [`Gemfile`](https://github.com/lynn9388/light-blog/blob/master/Gemfile)、[`_config.yml`](https://github.com/lynn9388/light-blog/blob/master/_config.yml)和[`*.gemspec`](https://github.com/lynn9388/light-blog/blob/master/light-blog.gemspec)这三个文件的设置上,尤其是依赖(Jekyll 插件)的设置位置和[版本要求](https://pages.github.com/versions/),你可以参考我的项目里面的相关设置。 在测试的时候主题仓库必须已经被 push 到 GitHub 上,然后在本地就可以创建使用 `remote_theme` 的测试网站,测试网站的设置你可以查看 light-blog 的[使用说明](https://lynn9388.github.io/light-blog/2019/04/16/getting-started/#usage)。

@mzlogin 根据我自己的[测试](https://lynn9388.github.io/mzlogin/),这个模版目前已经可以被设置为 remote_theme ,并进行简单的设置就可以发布,具体步骤包括:(具体操作可参考我的[测试仓库](https://github.com/lynn9388/mzlogin)) 1. 通过项目右上角的[Use this template](https://github.com/mzlogin/mzlogin.github.io/generate) 按钮创建一个个人仓库; 1. 删除除了`_data`和`pages`之外的所有文件夹; 1. 在`_config.yml`中设置`remote_theme: mzlogin/mzlogin.github.io`; 1. 删除`CNAME`文件,并在`_config.yml`中设置`url`; 1. 在个人仓库设置页中启用 GitHub Pages。 经过上述操作就可以启用一个个人主页,后续就只需要根据需要修改个人信息和偏好设置,以后就和普通的写作、发布流程一样了。你本人仍然可以通过该仓库发布自己的文章,而对主题的修改会在使用该主题的网页下次构建时自动更新,所以我建议关闭这个issue。 PS: 如果你想完全分离主题和自己的文章,我也很乐意提供帮忙 :-)。

@ajorquera I have created [light-blog](https://github.com/lynn9388/light-blog) whose design is based on this one. It supports English and easy to use, you can try it if you like.

> I think the issue is that this requires a .gemspec file to be added at the root. I tried this in my fork and it seems to work. Can...