如何解决 gh-pages 中的断开链接(使用 generator-jekyllized)

How do I resolve broken links in gh-pages, (using generator-jekyllized)

我正在使用 generator-jekyllized to build my blog and decided to host it on Github pages. After pushing it to gh-pages (to test it out, and get into the git workflow) I found all the links are broken (They're fine locally). I figured the problem was in the _config.build.yml maybe I had to change the url。但这并没有帮助。

_config.yml中设置baseurl: /ant_blog.

调用资产:<link rel="stylesheet" href="{{ "/css/styles.css" | prepend: site.baseurl }}"><link rel="stylesheet" href="{{ site.baseurl }}/css/styles.css">

链接是这样的:<a href="{{ site.baseurl }}{{ page.url }}">