     ]
        })
        posts.forEach((p, idx) => {
            contentIndex.add({
                id: idx, title: p.title, content: p.content, //Change to removeHTML
            })
        });
        return contentIndex;
        }

        async function init() {
        //init offline search index

        const searchIndexDate = '2023-06-19T11:01:57.667Z';
        let shouldFetch = true;
        if(localStorage.getItem("searchIndex")) {
            let {date, docs}= JSON.parse(localStorage.getItem('se