Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
sujata
/
advithconsulting.io-frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit a96398c2
authored
2024-11-29 16:37:10 +0530
by
sujata
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
document changes
1 parent
15986cf8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
container/Knowledge/KnowledgeBlog.js
pages/blog/index.js
container/Knowledge/KnowledgeBlog.js
View file @
a96398c
...
...
@@ -50,7 +50,7 @@ const blogPosts = [
const
KnowledgeBlog
=
({
Knowledgedata
})
=>
{
const
latestPosts
=
Knowledgedata
.
slice
(
0
,
3
);
console
.
log
(
latestPosts
,
"Knowledgedata"
)
//
console.log(latestPosts ,"Knowledgedata")
return
(
<>
<
div
id
=
"blog"
className
=
"blog-area pt-100 pb-70"
>
...
...
pages/blog/index.js
View file @
a96398c
...
...
@@ -25,7 +25,7 @@ const blogs = ({Blogpage, conversionData }) => {
// Pagination setup
const
[
currentPage
,
setCurrentPage
]
=
useState
(
1
);
// Start at page 1
const
postsPerPage
=
3
;
// Number of items per page
const
postsPerPage
=
6
;
// Number of items per page
const
offset
=
(
currentPage
-
1
)
*
postsPerPage
;
// Calculate offset
const
currentItems
=
blogData
?.
slice
(
offset
,
offset
+
postsPerPage
);
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment