Skip to content

Commit

Permalink
solve link problem
Browse files Browse the repository at this point in the history
  • Loading branch information
devsdenepal committed Jan 17, 2024
1 parent 92a029e commit adb494d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ <h1 class="title-font sm:text-4xl text-3xl mb-4 font-medium text-white">Recent H
<p class="mb-8 leading-relaxed" id="highlighted_content">loading..</p>
<div class="flex justify-center">
<button
class="inline-flex text-white bg-indigo-500 border-0 py-2 px-6 focus:outline-none hover:bg-indigo-600 rounded text-lg"
onclick="window.open('https://github.com/\\Krimson-Squad/\\andro-predom')">Source code</button>
<a href="/andro-predom"><button
class="inline-flex text-white bg-indigo-500 border-0 py-2 px-6 focus:outline-none hover:bg-indigo-600 rounded text-lg" href="#" id="featured-github-lin">Source code</button>
<a href="#" id="featured-link"><button
class="ml-4 inline-flex text-gray-400 bg-gray-800 border-0 py-2 px-6 focus:outline-none hover:bg-gray-700 hover:text-white rounded text-lg">See
documentation</button></a>
</div>
Expand Down

0 comments on commit adb494d

Please sign in to comment.