【发布时间】:2016-01-15 12:25:48
【问题描述】:
我目前正在开发一个由 Jekyll 提供支持的站点,并且在我的 Jekyll 本地服务器中运行的行 permalink: /:path/ 无法通过 配置 (_config.yml) 或 YAML Front Matter。它们从字面上输出为 example.com/:path/ 而不是 example.com/dir-name/ 。
我试过permalink: "/:path/",但还是不行,some said that some permalink will not work in the Jekyll version of GitHub。经过研究,GitHub Pages 有一个 2.4.0 的 Jekyll 版本,可以在 its "Dependency versions" page 找到。 Jekyll 网站的GitHub Pages documentation 中也没有提及这一点。
有人知道 GitHub Pages 中有效的 Jekyll permalinks 的确切列表,所以我可以选择在我的项目中使用哪些永久链接以及供未来的读者使用?
【问题讨论】:
标签: github configuration jekyll permalinks github-pages