diff --git a/lib/plugins/helper/date.ts b/lib/plugins/helper/date.ts index 22d733da98..8d45b27147 100644 --- a/lib/plugins/helper/date.ts +++ b/lib/plugins/helper/date.ts @@ -61,7 +61,7 @@ function timeTagHelper(date: string | number | Date | moment.Moment, format: str return ``; } -function getLanguage(ctx: Hexo) { +function getLanguage(ctx) { return ctx.page.lang || ctx.page.language || ctx.config.language; }