Skip to content

Commit

Permalink
Правит закрытие одиночных тегов в xml-фидах (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
monochromer authored and pepelsbey committed Aug 8, 2024
1 parent 2843ba7 commit 6fea400
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 6fea400

Please sign in to comment.