We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e694c5 commit 7ca917dCopy full SHA for 7ca917d
script/book.rb
@@ -130,7 +130,11 @@ def save
130
front_matter = self.front_matter
131
front_matter["page_title"] = "Git - Book"
132
front_matter["url"] = "/book/#{@language_code}/v#{@edition}.html"
133
- front_matter["aliases"] = [ "/book/#{@language_code}/v#{@edition}/index.html" ]
+ front_matter["aliases"] = [
134
+ "/book/#{@language_code}/v#{@edition}/index.html",
135
+ "/book/#{@language_code}/index.html"
136
+ ]
137
+ front_matter["aliases"].push("/book/index.html") if @language_code == "en"
138
front_matter["book"]["front_page"] = true
139
front_matter["book"]["repository_url"] = "https://github.com/#{@@all_books[@language_code]}"
140
front_matter["book"]["sha"] = self.sha
0 commit comments