Skip to content

Commit

Permalink
Исправляет ошибку в RSS-фиде (#1272)
Browse files Browse the repository at this point in the history
* Исправляет ошибку в RSS-фиде (#1245)

* Возвращает слеши в RSS-фид (#1245)
  • Loading branch information
hcz committed Jun 26, 2024
1 parent b7d96fd commit 103c83e
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 103c83e

Please sign in to comment.