We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d29ef3 commit 46d18a1Copy full SHA for 46d18a1
js/all.js
@@ -34,10 +34,14 @@ if (typeof($) != 'undefined') {
34
}
35
$('article a[href]').each(function () {
36
const href = $(this).attr('href');
37
- if (href.startsWith('http') && !href.includes(location.hostname)) {
38
- $(this).addClass('external');
39
- $(this).append('<img src="/images/icons/link.svg" class="link" alt="external"/>');
+ if (!href.startsWith('http') || href.includes(location.hostname)) {
+ return;
40
+ if ($(this).find('img').length > 0) {
41
42
+ }
43
+ $(this).addClass('external');
44
+ $(this).append('<img src="/images/icons/link.svg" class="link" alt="external"/>');
45
});
46
if ($('.buttons').css('display') !== 'none') {
47
$(".button[href!='#']").click(
0 commit comments