chore: post name only for posts

This commit is contained in:
Cory Dransfeldt 2024-04-14 18:39:14 -07:00
parent 790f7ddfff
commit ae2d9399a3
No known key found for this signature in database
3 changed files with 13 additions and 3 deletions

View file

@ -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) => {