2
0
Fork 0
mirror of https://github.com/getzola/zola synced 2024-12-12 13:22:29 +00:00

Revert "Exclude self from translation list for page/section"

This reverts commit 0a7692ad85.
This commit is contained in:
Vincent Prouillet 2021-06-25 10:09:55 +02:00
parent 93900fb623
commit 06bee578a0

View file

@ -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,