mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-27 15:10:00 +00:00
MailChimp
This commit is contained in:
@@ -13,7 +13,7 @@ export const LayoutSearch = props => {
|
||||
|
||||
useEffect(() => {
|
||||
setTimeout(() => {
|
||||
const container = isBrowser() && document.getElementById('container')
|
||||
const container = isBrowser() && document.getElementById('posts-wrapper')
|
||||
if (container && container.innerHTML) {
|
||||
const re = new RegExp(keyword, 'gim')
|
||||
const instance = new Mark(container)
|
||||
|
||||
@@ -15,7 +15,7 @@ export const LayoutSlug = props => {
|
||||
|
||||
{lock && <ArticleLock validPassword={validPassword} />}
|
||||
|
||||
<div id="notion-article" className="px-2 xl:max-w-4xl 2xl:max-w-6xl ">
|
||||
<div id="article-wrapper" className="px-2 xl:max-w-4xl 2xl:max-w-6xl ">
|
||||
|
||||
<ArticleInfo post={post} />
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ export const BlogListPage = props => {
|
||||
return (
|
||||
<div className="w-full md:pr-8 mb-12">
|
||||
|
||||
<div id="container">
|
||||
<div id="posts-wrapper">
|
||||
{posts?.map((p, index) => (<div key={p.id}>
|
||||
{(index + 1) % 3 === 0 && <AdSlot type='in-article' />}
|
||||
{ (index + 1) === 4 && <AdSlot type='flow'/>}
|
||||
|
||||
@@ -44,7 +44,7 @@ export const BlogListScroll = props => {
|
||||
})
|
||||
|
||||
return (
|
||||
<div id="container" className="w-full md:pr-8 mb-12" ref={targetRef}>
|
||||
<div id="posts-wrapper" className="w-full md:pr-8 mb-12" ref={targetRef}>
|
||||
{postsToShow.map(p => (
|
||||
<BlogItem key={p.id} post={p}/>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user