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 c7600ca commit 0396b7d
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 0396b7d

Please sign in to comment.