+ {human_creation_date.getDate()} + {monthNames[human_creation_date.getMonth()]} + {human_creation_date.getFullYear()} +
+{title}
+{summary}
+diff --git a/src/lib/posts/NewsVerticalCard.svelte b/src/lib/posts/NewsVerticalCard.svelte new file mode 100644 index 0000000..1b0e77e --- /dev/null +++ b/src/lib/posts/NewsVerticalCard.svelte @@ -0,0 +1,79 @@ + + +
+ + diff --git a/src/routes/+layout.server.ts b/src/routes/+layout.server.ts index 9ebcf41..d8d824f 100644 --- a/src/routes/+layout.server.ts +++ b/src/routes/+layout.server.ts @@ -3,7 +3,7 @@ * for all posts on the website. */ -import { posts } from './post/posts_data.js'; +import { posts } from './post/posts_data'; // Basically the same as Post but might contain less infomation - save storage type Summary = { diff --git a/src/routes/post/+page.svelte b/src/routes/post/+page.svelte index 4d2b213..7bca1a4 100644 --- a/src/routes/post/+page.svelte +++ b/src/routes/post/+page.svelte @@ -1,17 +1,78 @@ - -