chore: post name only for posts
This commit is contained in:
parent
790f7ddfff
commit
ae2d9399a3
3 changed files with 13 additions and 3 deletions
|
@ -43,6 +43,10 @@ export default {
|
|||
const normalizedPage = page.includes('.html') ? page.replace('.html', '/') : page
|
||||
return !!normalizedPage && normalizedPage.includes(category) && !/\d+/.test(normalizedPage);
|
||||
},
|
||||
isPost: (url) => {
|
||||
if (url.includes('post')) return true;
|
||||
return false
|
||||
},
|
||||
|
||||
// analytics
|
||||
getPopularPosts: (posts, analytics) => {
|
||||
|
|
Reference in a new issue