Fix broken docker build from last modified

This commit is contained in:
Aria 2025-03-10 22:29:08 +11:00
parent be848a1d04
commit 1490a0b269
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B

View file

@ -18,7 +18,7 @@ export async function getStaticPaths() {
const { post } = Astro.props; const { post } = Astro.props;
const { Content, remarkPluginFrontmatter } = await render(post); const { Content, remarkPluginFrontmatter } = await render(post);
const lastModified = dayjs(remarkPluginFrontmatter.lastModified) const lastModified = import.meta.env.PUBLIC_COMMIT === "" ? "Unavailable" : dayjs(remarkPluginFrontmatter.lastModified)
.utc() .utc()
.format("HH:mm:ss DD MMMM YYYY UTC"); .format("HH:mm:ss DD MMMM YYYY UTC");
--- ---