We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 207b4ea commit 9441640Copy full SHA for 9441640
src/utils/dataUtils.js
@@ -23,9 +23,10 @@ export const fetchAllBlogPosts = async () => {
23
const processedPosts = [];
24
allPostsData.forEach((item) => {
25
if (item.series) {
26
- item.series.posts.forEach((seriesPost) => {
+ item.series.posts.forEach((seriesPost, index) => {
27
processedPosts.push({
28
...seriesPost,
29
+ seriesIndex: index + 1,
30
filename: seriesPost.filename.startsWith('/')
31
? seriesPost.filename.substring(1)
32
: seriesPost.filename,
0 commit comments