File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,6 @@ export const getStaticProps = (async (context) => {
156
156
const timeToRead = readingTime ( markdown . content )
157
157
const tocItems = remapTableOfContents ( tocNodeItems , mdxSource . compiledSource )
158
158
const slug = `/${ params . slug . join ( "/" ) } /`
159
- const lastDeployDate = getLastDeployDate ( )
160
159
161
160
// Get corresponding layout
162
161
let layout = ( frontmatter . template as Layout ) ?? "static"
@@ -186,6 +185,16 @@ export const getStaticProps = (async (context) => {
186
185
commitHistoryCache
187
186
)
188
187
188
+ const lastDeployDate = getLastDeployDate ( )
189
+ const lastEditLocaleTimestamp = getLocaleTimestamp (
190
+ locale as Lang ,
191
+ lastUpdatedDate
192
+ )
193
+ const lastDeployLocaleTimestamp = getLocaleTimestamp (
194
+ locale as Lang ,
195
+ lastDeployDate
196
+ )
197
+
189
198
const gfissues = await gfIssuesDataFetch ( )
190
199
191
200
return {
@@ -194,14 +203,8 @@ export const getStaticProps = (async (context) => {
194
203
mdxSource,
195
204
slug,
196
205
frontmatter,
197
- lastEditLocaleTimestamp : getLocaleTimestamp (
198
- locale as Lang ,
199
- lastUpdatedDate
200
- ) ,
201
- lastDeployLocaleTimestamp : getLocaleTimestamp (
202
- locale as Lang ,
203
- lastDeployDate
204
- ) ,
206
+ lastEditLocaleTimestamp,
207
+ lastDeployLocaleTimestamp,
205
208
contentNotTranslated,
206
209
layout,
207
210
timeToRead : Math . round ( timeToRead . minutes ) ,
You can’t perform that action at this time.
0 commit comments