export default () => {
const home = isHomePage()
const category = isCategoryPage()
if (!home && !category) return
pageElementInit()
let options = {}
if (home) {
initHomePageElement()
options = {
page: 'home',
wrap: '.day',
find: '.postTitle,.postCon,.postDesc',
callback() {
$('.day').remove()
},
}
}
if (category) {
initCategoryPageElement()
options = {
page: 'category',
wrap: '.entrylistItem',
find:
'.entrylistPosttitle,.entrylistPostSummary,.entrylistItemPostDesc',
callback() {
$('.entrylist').remove()
},
}
}
main(options)
}