Sunday, November 10, 2024
document.addEventListener("DOMContentLoaded", function() { // Select all links within .cm-entry-summary var links = document.querySelectorAll(".cm-entry-summary a"); links.forEach(function(link) { // Check if the link's href contains your domain if (link.href.includes(window.location.hostname)) { link.classList.add("internal-link"); // Add class for styling internal links } }); });