Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Правит закрытие одиночных тегов в xml-фидах #363

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

monochromer
Copy link
Collaborator

Для новых трансформаций для заголовков я использовал this.page.outputFileExtension как признак принадлежности к тому или иному типу файла. По всей видимости, Eleventy использует его для custom template engine, когда авторы указывают расширение выходных файлов.

По умолчанию, outputFileExtension равен html, поэтому условие в трансформациях не выполняется и содержимое xml-файлов обрабатывается по правилам html, и, как следствие, появляются одиночные незакрытые теги.

Переделал на проверку this.page.outputPath.

Copy link
Member

@pepelsbey pepelsbey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Проверил, работает! Спасибо :)

image

@pepelsbey pepelsbey merged commit 7f391d7 into web-standards-ru:main Jun 19, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants