Compare commits
3 Commits
nextjs
...
feature/ot
Author | SHA1 | Date | |
---|---|---|---|
279176801b | |||
0f574ee109 | |||
9a60cb5ee7 |
10
_content/cases/otc-irs.md
Normal file
10
_content/cases/otc-irs.md
Normal 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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user