mirror of
https://github.com/getzola/zola
synced 2024-11-10 14:24:27 +00:00
Revert "Exclude self from translation list for page/section"
This reverts commit 0a7692ad85
.
This commit is contained in:
parent
93900fb623
commit
06bee578a0
1 changed files with 0 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue