diff --git a/_content/cases/otc-irs.md b/_content/cases/otc-irs.md new file mode 100644 index 0000000..4de0dae --- /dev/null +++ b/_content/cases/otc-irs.md @@ -0,0 +1,11 @@ +--- +title: EUREX OTC IRS in C7 CAS +goal: Integrate Over The Counter Interest Rate Swap including Calypso interface into C7 CAS +role: Software developer helping with the integration +date: Feb 2024 - Jun 2024 +z: 9 +draft: true +--- + + + diff --git a/src/lib/content.ts b/src/lib/content.ts index 8cbb823..3413072 100644 --- a/src/lib/content.ts +++ b/src/lib/content.ts @@ -14,6 +14,19 @@ export const getContent = (slug: string[]): GrayMatterFile => { if (!contentMap[p]) { const file = fs.readFileSync(p, "utf8"); const m = matter(file); + const date = m.data.date; + if (date) { + m.data.date = ""; + const d = date.split("-"); + const from = d[0]?.trim(); + const to = d[1]?.trim(); + if (from) { + m.data.date += new Date(from).toDateString() + } + if (to) { + m.data.date += ` - ${new Date(to).toDateString()}` + } + } m.data.slug = `/c/${slug.join("/")}`; contentMap[p] = m; return m;