diff --git a/assets/js/main.js b/assets/js/main.js index 3d0a3b7..1e7c9ed 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -171,10 +171,10 @@ */ new PureCounter(); -})() - -document.addEventListener("DOMContentLoaded", function () { - const articles = [ + /** + * Generate Blog Cards + */ + const blogArticles = [ { title: "Download Youtube Videos", description: "Download YouTube videos through the terminal using a bash script.", @@ -182,35 +182,35 @@ document.addEventListener("DOMContentLoaded", function () { link: "https://medium.com/@mwikyo/download-youtube-videos-through-the-terminal-using-a-bash-script-205b21161339" }, { - title: "Mastering Technical Support Skills", - description: "How to become efficient and skilled in technical support.", - image: "assets/img/blog/image2.jpg", // Replace with your image path - link: "https://medium.com/@mwikyo/mastering-technical-support-skills" + title: "Web Development Essentials", + description: "A guide to building scalable and efficient web applications.", + link: "https://medium.com/example2" }, { - title: "Building Resilient Systems", - description: "Tips on creating systems with reliability in mind.", - image: "assets/img/blog/image3.jpg", // Replace with your image path - link: "https://medium.com/@mwikyo/building-resilient-systems" + title: "Technical Support in a Digital Age", + description: "Insights on modern technical support and customer service best practices.", + link: "https://medium.com/example3" } ]; - const blogContainer = document.getElementById("blog-cards"); - - articles.forEach((article) => { - const cardHTML = ` -