diff --git a/assets/js/data.js b/assets/js/data.js index 705d180b..210f35b3 100644 --- a/assets/js/data.js +++ b/assets/js/data.js @@ -17,6 +17,11 @@ function get_data() { ] }, "links": [ + { + "title": "hackerb9/lsix Like ls, but for images. Shows thumbnails in terminal using sixel graphics.", + "url": "https://github.com/hackerb9/lsix", + "date": "06/06/2024" + }, { "title": "Capital Offense How to Handle Abbreviations in CamelCase - Approxion", "url": "https://www.approxion.com/capital-offenses-how-to-handle-abbreviations-in-camelcase/", diff --git a/assets/js/links.js b/assets/js/links.js index b36a7b8e..39205852 100644 --- a/assets/js/links.js +++ b/assets/js/links.js @@ -1,9 +1,10 @@ const data = get_data() function populate_links() { + const links = document.getElementById('links') + links.innerHTML = '' + data.links.forEach(link => { - const links = document.getElementById('links') - links.innerHTML = '' const item = document.createElement('li') const anchor = document.createElement('a') const date = document.createElement('span') diff --git a/assets/js/main.js b/assets/js/main.js index ef5e7c01..a5d56fa8 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -1,9 +1,10 @@ const data = get_data() function populate_posts() { + const posts = document.getElementById('nav-posts') + posts.innerHTML = '' + data.posts[lang].forEach(post => { - const posts = document.getElementById('nav-posts') - posts.innerHTML = '' const item = document.createElement('li') const anchor = document.createElement('a') const date = document.createElement('span')