Revert "Exclude self from translation list for page/section"
This reverts commit 0a7692ad85
.
This commit is contained in:
parent
93900fb623
commit
06bee578a0
|
@ -33,9 +33,6 @@ impl<'a> TranslatedContent<'a> {
|
||||||
.iter()
|
.iter()
|
||||||
{
|
{
|
||||||
let other = library.get_section_by_key(*key);
|
let other = library.get_section_by_key(*key);
|
||||||
if other.permalink == section.permalink {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
translations.push(TranslatedContent {
|
translations.push(TranslatedContent {
|
||||||
lang: &other.lang,
|
lang: &other.lang,
|
||||||
permalink: &other.permalink,
|
permalink: &other.permalink,
|
||||||
|
@ -54,9 +51,6 @@ impl<'a> TranslatedContent<'a> {
|
||||||
library.translations.get(&page.file.canonical).or(Some(&HashSet::new())).unwrap().iter()
|
library.translations.get(&page.file.canonical).or(Some(&HashSet::new())).unwrap().iter()
|
||||||
{
|
{
|
||||||
let other = library.get_page_by_key(*key);
|
let other = library.get_page_by_key(*key);
|
||||||
if other.permalink == page.permalink {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
translations.push(TranslatedContent {
|
translations.push(TranslatedContent {
|
||||||
lang: &other.lang,
|
lang: &other.lang,
|
||||||
permalink: &other.permalink,
|
permalink: &other.permalink,
|
||||||
|
|
Loading…
Reference in a new issue