Skip to content

Commit

Permalink
Правит закрытие одиночных тегов в xml-фидах
Browse files Browse the repository at this point in the history
  • Loading branch information
monochromer committed Jun 14, 2024
1 parent 5a00b0b commit ee59bab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eleventy-config/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default function(eleventyConfig) {

// добавление на заголовки id с временными метками внутри страниц подкастов
eleventyConfig.addTransform('podcast-headings', async function(content) {
if (this.page?.outputFileExtension !== 'html') {
if (!this.page?.outputPath?.endsWith?.('html')) {
return content;
}

Expand Down Expand Up @@ -196,7 +196,7 @@ export default function(eleventyConfig) {

// добавление id на заголовки и кнопок для копирования ссылок
eleventyConfig.addTransform('content-headings', async function(content) {
if (this.page?.outputFileExtension !== 'html') {
if (!this.page?.outputPath?.endsWith?.('html')) {
return content;
}

Expand Down

0 comments on commit ee59bab

Please sign in to comment.