diff --git a/_scripts/ext-links.js b/_scripts/ext-links.js new file mode 100644 index 0000000..b13ced6 --- /dev/null +++ b/_scripts/ext-links.js @@ -0,0 +1,20 @@ +/* + make all external links open in a new tab +*/ + +{ + const onLoad = () => { + // for each link + const links = document.querySelectorAll("a"); + for (const link of links) + try { + // if link absolute and different domain + if (new URL(link.src).hostname !== new URL(window.location).hostname) + // make link open in new tab + link.setAttribute("target", "_blank"); + } catch (error) {} + }; + + // after page loads + window.addEventListener("load", onLoad); +} \ No newline at end of file diff --git a/images/Bissoli_Photo.jpg b/images/Bissoli_Photo.jpg new file mode 100644 index 0000000..0664379 Binary files /dev/null and b/images/Bissoli_Photo.jpg differ diff --git a/images/Bissoli_Photo.png b/images/Bissoli_Photo.png new file mode 100644 index 0000000..51fe59b Binary files /dev/null and b/images/Bissoli_Photo.png differ diff --git a/images/GralhaAzul_Photo.png b/images/GralhaAzul_Photo.png new file mode 100644 index 0000000..5ce2534 Binary files /dev/null and b/images/GralhaAzul_Photo.png differ