Redirect GitHub上不生成Jekyll重定向
我正在使用Redirect GitHub上不生成Jekyll重定向,redirect,jekyll,github-pages,Redirect,Jekyll,Github Pages,我正在使用jekyll redirect fromgem为我的由Github页面托管的jekyll网站生成重定向页面。所有这些都可以在本地正常工作,但没有在GitHub上生成重定向HTMLs 这是我的\u config.yml title: My Title baseurl: /my-project url: "https://my-organisarion.github.io/my-project" google_analytics: # set tracking permalinks: p
jekyll redirect from
gem为我的由Github页面托管的jekyll网站生成重定向页面。所有这些都可以在本地正常工作,但没有在GitHub上生成重定向HTMLs
这是我的\u config.yml
title: My Title
baseurl: /my-project
url: "https://my-organisarion.github.io/my-project"
google_analytics: # set tracking
permalinks: pretty
markdown: kramdown
exclude:
- Gemfile
- Gemfile.lock
注意,我正在本地设置url:http://localhost:4000“
并省略baseurl
和Gemfile
:
source "https://rubygems.org"
ruby RUBY_VERSION
gem "github-pages", group: :jekyll_plugins
group :jekyll_plugins do
gem "jekyll-redirect-from"
end
在_config.yml中:
gems:
- jekyll-redirect-from
你读过这个吗 非常感谢!就这样!