|
@@ -94,7 +94,7 @@
|
|
|
}, 2000);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
function favoriteBtn(indexNumber) {
|
|
|
const favBtn = document.querySelectorAll('.favorite-btn');
|
|
|
if ("${ssIsLogin}" === "true") {
|
|
@@ -139,14 +139,6 @@
|
|
|
console.log(JSON.stringify(article))
|
|
|
const domParser = new DOMParser();
|
|
|
|
|
|
- //태그 배열 생성
|
|
|
- const tagsArray = article.tags.split(',')
|
|
|
- tagsArray.forEach(tag => {
|
|
|
- if (tag !== '') {
|
|
|
- tagArray.push(tag);
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
const domStrArticleMeta =
|
|
|
`
|
|
|
<div class="article-meta">
|
|
@@ -214,6 +206,14 @@
|
|
|
}
|
|
|
|
|
|
articleList.appendChild(articlePreview);
|
|
|
+
|
|
|
+ //태그 배열 생성
|
|
|
+ const tagsArray = article.tags.split(',')
|
|
|
+ tagsArray.forEach(tag => {
|
|
|
+ if (tag !== '') {
|
|
|
+ tagArray.push(tag);
|
|
|
+ }
|
|
|
+ })
|
|
|
});
|
|
|
|
|
|
//태그 정렬
|