Skip to content

Commit

Permalink
Исправляет ошибку в RSS-фиде (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
hcz committed Jun 17, 2024
1 parent 27444f7 commit c7600ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ module.exports = function (config) {
const titledLink = stringParts[1].split('](')
post['date'] = new Date(Date.parse(`${currentYear}-${currentMonth + 1}-${currentDay}`)).toISOString()
post['title'] = titledLink[0].replace(/^\[/, '')
post['url'] = titledLink[1].replace(/\), [А-ЯЁа-яё ,]*/, '')
post['url'] = titledLink[1].replace(/\/[^/]+$/, '')
const rawArticle = collectionApi.getFilteredByGlob(
`src${post['url'].replace('https://doka.guide', '')}*.md`,
)[0]
Expand Down

0 comments on commit c7600ca

Please sign in to comment.