@@ -29,6 +29,7 @@ import PageMetadata from "@/components/PageMetadata"
29
29
30
30
import { getFileContributorInfo } from "@/lib/utils/contributors"
31
31
import { dateToString } from "@/lib/utils/date"
32
+ import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
32
33
import { getContent , getContentBySlug } from "@/lib/utils/md"
33
34
import { runOnlyOnce } from "@/lib/utils/runOnlyOnce"
34
35
import { getLocaleTimestamp } from "@/lib/utils/time"
@@ -155,6 +156,7 @@ export const getStaticProps = (async (context) => {
155
156
const timeToRead = readingTime ( markdown . content )
156
157
const tocItems = remapTableOfContents ( tocNodeItems , mdxSource . compiledSource )
157
158
const slug = `/${ params . slug . join ( "/" ) } /`
159
+ const lastDeployDate = getLastDeployDate ( )
158
160
159
161
// Get corresponding layout
160
162
let layout = ( frontmatter . template as Layout ) ?? "static"
@@ -196,6 +198,10 @@ export const getStaticProps = (async (context) => {
196
198
locale as Lang ,
197
199
lastUpdatedDate
198
200
) ,
201
+ lastDeployLocaleTimestamp : getLocaleTimestamp (
202
+ locale as Lang ,
203
+ lastDeployDate
204
+ ) ,
199
205
contentNotTranslated,
200
206
layout,
201
207
timeToRead : Math . round ( timeToRead . minutes ) ,
@@ -232,6 +238,7 @@ ContentPage.getLayout = (page) => {
232
238
slug,
233
239
frontmatter,
234
240
lastEditLocaleTimestamp,
241
+ lastDeployLocaleTimestamp,
235
242
layout,
236
243
timeToRead,
237
244
tocItems,
@@ -243,6 +250,7 @@ ContentPage.getLayout = (page) => {
243
250
slug,
244
251
frontmatter,
245
252
lastEditLocaleTimestamp,
253
+ lastDeployLocaleTimestamp,
246
254
timeToRead,
247
255
tocItems,
248
256
contributors,
0 commit comments