init
This commit is contained in:
@@ -75,15 +75,15 @@ function appendLinks(links) {
|
||||
body.className = "card-body d-flex flex-column";
|
||||
|
||||
const title = document.createElement("h5");
|
||||
title.className = "card-title mb-2";
|
||||
title.className = "card-title mb-2 line-clamp-title";
|
||||
title.textContent = link.title || link.url;
|
||||
|
||||
const description = document.createElement("p");
|
||||
description.className = "card-text text-secondary flex-grow-1";
|
||||
description.className = "card-text text-secondary card-description";
|
||||
description.textContent = link.description || "설명 없음";
|
||||
|
||||
const linkBtn = document.createElement("a");
|
||||
linkBtn.className = "btn btn-outline-primary btn-sm";
|
||||
linkBtn.className = "btn btn-outline-primary btn-sm mt-auto";
|
||||
linkBtn.href = link.url;
|
||||
linkBtn.target = "_blank";
|
||||
linkBtn.rel = "noopener";
|
||||
|
||||
Reference in New Issue
Block a user