mirror of https://gitlab.com/curben/blog
feat(layout): Add page number to blog <title>
This commit is contained in:
parent
e4b065288c
commit
e130371288
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue