Skip to content

Commit

Permalink
chore: code organisation
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Dec 5, 2024
1 parent 4e79647 commit fb6f8c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const ArticlePageHeader = ({
return (
<div className="flex w-full flex-wrap items-center gap-2">
{labels.map((label) => {
return <Tag>{label}</Tag>
return <Tag key={label}>{label}</Tag>
})}
</div>
)
Expand Down
13 changes: 7 additions & 6 deletions tooling/build/scripts/publishing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ async function main() {
...resource.content.page,
title: resource.title,
}

await writeContentToFile(
resource.fullPermalink,
resource.content,
resource.parentId,
)

const idOfFolder = resources.find(
(item) =>
resource.fullPermalink.endsWith(INDEX_PAGE_PERMALINK) &&
Expand Down Expand Up @@ -135,12 +142,6 @@ async function main() {
}

sitemapEntries.push(sitemapEntry)

await writeContentToFile(
resource.fullPermalink,
resource.content,
resource.parentId,
)
} else {
logDebug(
`Skipping resource with id ${resource.id} as it is not a Page or has no content.`,
Expand Down

0 comments on commit fb6f8c2

Please sign in to comment.