feat(layout): Add page number to blog <title>

This commit is contained in:
curben 2019-06-13 13:38:30 +09:30
parent e4b065288c
commit e130371288
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@
title += ': ' + page.year + '/' + page.month
} else if (is_year()) {
title += ': ' + page.year
} else if (page.current_url) {
const pageNum = Number(page.current_url.charAt(page.current_url.length - 2))
if (Number.isInteger(pageNum)) title += ': Page ' + pageNum
}
} else if (is_category()) {
title = __('category') + ': ' + page.category