Skip to content

Commit

Permalink
Fix sorting to desc and update displayed title on bulletins. (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-labbate authored Feb 8, 2024
1 parent bc971a1 commit d606808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/policies-and-audits/smart-bulletins/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import FullSizeTemplate from '@components/FullSizeTemplate.astro'
const smartbulletinsData = await getEntry('smartbulletins-old', 'smart-bulletins');
const smartbulletins = await getCollection('smart-bulletins')
smartbulletins.sort((a, b) => parseInt(a.data.order) - parseInt(b.data.order))
smartbulletins.sort(a => 0 - parseInt(a.data.order))
export async function getStaticPaths() {
const entries = await getCollection('about');
Expand Down Expand Up @@ -48,7 +48,7 @@ export async function getStaticPaths() {
<tr>
<th scope="row" class="grid-col-1">{item.data.number}</th>
<td class="grid-col-5">
<a href={`${import.meta.env.BASE_URL}policies-and-audits/smart-bulletins/${item.slug}`}>{item.data.title}</a>
<a href={`${import.meta.env.BASE_URL}policies-and-audits/smart-bulletins/${item.slug}`}>{item.data.intro}</a>
</td>
<td class="grid-col-2">{item.data.businessline}</td>
<td class="grid-col-2">{item.data.published}</td>
Expand Down

0 comments on commit d606808

Please sign in to comment.