Skip to content

Commit 9f7a9e6

Browse files
committed
chore: update [...slug]
1 parent b6c4063 commit 9f7a9e6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/pages/[...slug].tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import PageMetadata from "@/components/PageMetadata"
2929

3030
import { getFileContributorInfo } from "@/lib/utils/contributors"
3131
import { dateToString } from "@/lib/utils/date"
32-
import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
3332
import { getContent, getContentBySlug } from "@/lib/utils/md"
3433
import { runOnlyOnce } from "@/lib/utils/runOnlyOnce"
3534
import { getLocaleTimestamp } from "@/lib/utils/time"
@@ -156,7 +155,6 @@ export const getStaticProps = (async (context) => {
156155
const timeToRead = readingTime(markdown.content)
157156
const tocItems = remapTableOfContents(tocNodeItems, mdxSource.compiledSource)
158157
const slug = `/${params.slug.join("/")}/`
159-
const lastDeployDate = getLastDeployDate()
160158

161159
// Get corresponding layout
162160
let layout = (frontmatter.template as Layout) ?? "static"
@@ -198,10 +196,6 @@ export const getStaticProps = (async (context) => {
198196
locale as Lang,
199197
lastUpdatedDate
200198
),
201-
lastDeployLocaleTimestamp: getLocaleTimestamp(
202-
locale as Lang,
203-
lastDeployDate
204-
),
205199
contentNotTranslated,
206200
layout,
207201
timeToRead: Math.round(timeToRead.minutes),
@@ -238,7 +232,6 @@ ContentPage.getLayout = (page) => {
238232
slug,
239233
frontmatter,
240234
lastEditLocaleTimestamp,
241-
lastDeployLocaleTimestamp,
242235
layout,
243236
timeToRead,
244237
tocItems,
@@ -250,7 +243,6 @@ ContentPage.getLayout = (page) => {
250243
slug,
251244
frontmatter,
252245
lastEditLocaleTimestamp,
253-
lastDeployLocaleTimestamp,
254246
timeToRead,
255247
tocItems,
256248
contributors,

0 commit comments

Comments
 (0)