cosmicjs to markdown

This commit is contained in:
2023-01-19 09:45:12 -05:00
parent f605845f7e
commit bcf590e1e2
28 changed files with 498 additions and 100 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
---
import { formatInTimeZone } from "date-fns-tz";
import { format } from "date-fns-tz";
interface Props {
title: String;
@@ -12,6 +12,6 @@ const { title, date } = Astro.props;
<div class="blog-header">
<h2>{title}</h2>
<h3 style={{ fontSize: "1.1rem" }}>
{`🗓️ ${formatInTimeZone(new Date(date), "America/New_York", "MMM do, y")}`}
{`🗓️ ${format(new Date(date), "MMM do, y")}`}
</h3>
</div>