Wowie what a gay little website for my gay little self aria.coffee
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix broken docker build from last modified attempt 2

Aria aa7cf4a9 1490a0b2

+2 -2
+1 -1
remark-modified-time.mjs
··· 3 3 export function remarkModifiedTime() { 4 4 return (tree, file) => { 5 5 const filepath = file.history[0]; 6 - const result = execSync(`git log -1 --pretty="format:%cI" "${filepath}"`); 6 + const result = import.meta.env.PUBLIC_COMMIT === "" ? "Unavailable" : execSync(`git log -1 --pretty="format:%cI" "${filepath}"`); 7 7 file.data.astro.frontmatter.lastModified = result.toString(); 8 8 }; 9 9 }
+1 -1
src/pages/posts/[...slug].astro
··· 18 18 const { post } = Astro.props; 19 19 const { Content, remarkPluginFrontmatter } = await render(post); 20 20 21 - const lastModified = import.meta.env.PUBLIC_COMMIT === "" ? "Unavailable" : dayjs(remarkPluginFrontmatter.lastModified) 21 + const lastModified = dayjs(remarkPluginFrontmatter.lastModified) 22 22 .utc() 23 23 .format("HH:mm:ss DD MMMM YYYY UTC"); 24 24 ---