Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
valerymelou committed Jul 28, 2024
2 parents 0e32769 + d794500 commit 5675555
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</figure>
}

<div class="mb-10">
<div class="my-10">
<div [cfRichTextDocument]="article.content">
<ng-container *cfRichTextNode="BLOCKS.HEADING_1; let node = node">
<h1
Expand Down
4 changes: 2 additions & 2 deletions libs/blog/tasks/src/lib/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const runExecutor: PromiseExecutor<RoutesExecutorSchema> = async (options) => {
const defaultQuery: { [key: string]: string } = {
content_type: 'article',
limit: options.limit?.toString() ?? '10',
order: options.order ?? '-sys.createdAt',
order: options.order ?? '-fields.publishedAt',
};
const entries = await cdaClient.getEntries(defaultQuery);
const routes = entries.items.map(
(entry) =>
`/blog/${entry.sys.createdAt.split('T')[0]}-${entry.fields['slug']}`,
`/blog/${(entry.fields['publishedAt'] as string).split('T')[0]}-${entry.fields['slug']}`,
);
const routesString = routes.join('\n');

Expand Down

0 comments on commit 5675555

Please sign in to comment.