1
0
mirror of synced 2026-01-08 03:01:54 -05:00

Merge pull request #18275 from github/repo-sync

repo sync
This commit is contained in:
Octomerger Bot
2022-05-26 16:54:57 -05:00
committed by GitHub

View File

@@ -62,9 +62,8 @@ export default async function buildRecords(
.on('page', (page) => {
process.stdout.write(pageMarker)
const newRecord = parsePageSectionsIntoRecords(page)
const hrefWithoutLocale = page.href.split('/').slice(2).join('/')
const popularity = (hasPopularPages && popularPages[hrefWithoutLocale]) || 0.0
const pathArticle = page.relativePath.replace('/index.md', '').replace('.md', '')
const popularity = (hasPopularPages && popularPages[pathArticle]) || 0.0
newRecord.popularity = popularity
process.stdout.write(recordMarker)
records.push(newRecord)