Skip to content

Commit

Permalink
rename innerpaginationOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tfsomrat committed Apr 17, 2023
1 parent e40a73c commit 25024ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"default_theme": "system",
"pagination": 6,
"InnerPaginationOptions": {
"enableTop": false,
"enableBot": true
"enableTop": false,
"enableBottom": true
},
"summary_length": 200,
"blog_folder": "posts"
Expand Down
10 changes: 5 additions & 5 deletions layouts/PostSingle.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ const PostSingle = ({
</ul>
</div>
{config.settings.InnerPaginationOptions.enableTop && (
<div className="mt-4">
<InnerPagination posts={posts} date={date} />
</div>
<div className="mt-4">
<InnerPagination posts={posts} date={date} />
</div>
)}
{markdownify(title, "h1", "lg:text-[42px] mt-4")}
<ul className="flex items-center space-x-4">
Expand All @@ -92,8 +92,8 @@ const PostSingle = ({
<div className="content mb-16">
<MDXRemote {...mdxContent} components={shortcodes} />
</div>
{config.settings.InnerPaginationOptions.enableBot && (
<InnerPagination posts={posts} date={date} />
{config.settings.InnerPaginationOptions.enableBottom && (
<InnerPagination posts={posts} date={date} />
)}
</article>
<div className="mt-16">
Expand Down

1 comment on commit 25024ea

@vercel
Copy link

@vercel vercel bot commented on 25024ea Apr 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.