Compare commits

...

3 Commits

Author SHA1 Message Date
279176801b
first line 2024-07-24 21:39:40 +02:00
0f574ee109
better title 2024-07-24 21:28:34 +02:00
9a60cb5ee7
date format 2024-07-24 21:22:17 +02:00
2 changed files with 23 additions and 0 deletions

10
_content/cases/otc-irs.md Normal file
View File

@ -0,0 +1,10 @@
---
title: Eurex Clearing OTC IRS (Calypso) Assets in C7 CAS
goal: Enable the clearing member to manage his OTC IRS assets in a digital way
role: Software developer helping with the integration
date: Feb 2024 - Jun 2024
z: 9
---
This project aims to provide a Clearing Member with the functionality to view, create and update the OTC IRS Calypso products and currencies.

View File

@ -14,6 +14,19 @@ export const getContent = (slug: string[]): GrayMatterFile<string> => {
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;