Skip to content

Commit

Permalink
fix wrong type
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Oct 28, 2023
1 parent b3e54c6 commit 683253f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/helper/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function timeTagHelper(date: string | number | Date | moment.Moment, format: str
return `<time datetime="${toISOString(date)}">${this.date(date, format, getLanguage(this), config.timezone)}</time>`;
}

function getLanguage(ctx: Hexo) {
function getLanguage(ctx) {
return ctx.page.lang || ctx.page.language || ctx.config.language;
}

Expand Down

0 comments on commit 683253f

Please sign in to comment.