Fix broken docker build from last modified
This commit is contained in:
parent
be848a1d04
commit
1490a0b269
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||||
---
|
---
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue