From 06bee578a07ea69b19722a2bfeebc9b950ffb8b4 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Fri, 25 Jun 2021 10:09:55 +0200 Subject: [PATCH] Revert "Exclude self from translation list for page/section" This reverts commit 0a7692ad85152a870fe5ed5cc2c24d681a1c7f72. --- components/library/src/content/ser.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/components/library/src/content/ser.rs b/components/library/src/content/ser.rs index 53a2d571..83ab4964 100644 --- a/components/library/src/content/ser.rs +++ b/components/library/src/content/ser.rs @@ -33,9 +33,6 @@ impl<'a> TranslatedContent<'a> { .iter() { let other = library.get_section_by_key(*key); - if other.permalink == section.permalink { - continue; - } translations.push(TranslatedContent { lang: &other.lang, permalink: &other.permalink, @@ -54,9 +51,6 @@ impl<'a> TranslatedContent<'a> { library.translations.get(&page.file.canonical).or(Some(&HashSet::new())).unwrap().iter() { let other = library.get_page_by_key(*key); - if other.permalink == page.permalink { - continue; - } translations.push(TranslatedContent { lang: &other.lang, permalink: &other.permalink,