Skip to content

Commit 7513b5a

Browse files
committed
edited: blog-text as div
1 parent 7c4a798 commit 7513b5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fetch('./blog-posts/posts.json').then(response => {
1515
let blogContent = document.createElement('div');
1616
let blogTitle = document.createElement('h2');
1717
let blogDate = document.createElement('p');
18-
let blogText = document.createElement('p');
18+
let blogText = document.createElement('div');
1919
let blogSong = document.createElement('div');
2020

2121
blogPost.className = 'blog-post';
@@ -34,7 +34,7 @@ fetch('./blog-posts/posts.json').then(response => {
3434
blogContent.appendChild(blogDate);
3535
blogContent.appendChild(blogText);
3636
blogContent.appendChild(blogSong);
37-
37+
3838
blogPost.appendChild(blogContent);
3939
blogDocument.appendChild(blogPost);
4040
})

0 commit comments

Comments
 (0)