From adb494d5276d0cad373532787fe5da5a4a276b46 Mon Sep 17 00:00:00 2001 From: "Dev. Gautam Kumar" <111997815+devsdenepal@users.noreply.github.com> Date: Wed, 17 Jan 2024 14:52:59 +0000 Subject: [PATCH] solve link problem --- assets/js/main.js | 4 +++- index.html | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index 93e3619..275f826 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -16,8 +16,10 @@ function bring_posts() { pages.forEach(function (page) { if (page.featured == "true") { console.table(page); + document.getElementById("featured-github-link").href = page.github_link; + document.getElementById("featured-link").href = page.url; document.getElementById("highlighted_topic").innerText = page.title; - document.getElementById("highlighted_content").innerText = page.description; + document.getElementById("highlighted_content").innerText = page.adescription; document.getElementById("highlighted_banner").src = page.image_url; } else { diff --git a/index.html b/index.html index 7237c64..525145a 100644 --- a/index.html +++ b/index.html @@ -33,9 +33,8 @@
loading..