don't link for a single language
This commit is contained in:
parent
ae09aabeb5
commit
35890db697
|
@ -371,6 +371,10 @@ impl MDBook {
|
|||
}
|
||||
|
||||
pub fn link_translations(&mut self) -> &mut MDBook {
|
||||
if self.translations.keys().count() == 1 {
|
||||
return self;
|
||||
}
|
||||
|
||||
for (key, book) in self.translations.clone() {
|
||||
let mut newbook: Book = book.clone();
|
||||
|
||||
|
|
Loading…
Reference in New Issue