diff --git a/docs/render.js b/docs/render.js index aa4c88e..c9de870 100644 --- a/docs/render.js +++ b/docs/render.js @@ -22,7 +22,11 @@ const el = (selector, ...args) => { let dataProp = prop.substring(5).replace(/-([a-z])/g, function(g) { return g[1].toUpperCase(); }); node.dataset[dataProp] = attrs[prop]; } else { - node[prop] = attrs[prop]; + if (typeof attrs[prop] === 'function' || prop == "className") { + node[prop] = attrs[prop]; + } else { + node.setAttribute(prop, attrs[prop]); + } } } } @@ -40,7 +44,6 @@ el.trust = function (html) { if (!html?.length) return undefined; var template = document.createElement('template'); template.innerHTML = html; - console.log(template.content.childNodes); return Array.from(template.content.childNodes); } window.el = el; diff --git a/docs/render/contact.html b/docs/render/contact.html index 49d9710..70450f7 100644 --- a/docs/render/contact.html +++ b/docs/render/contact.html @@ -3,24 +3,18 @@
+ + diff --git a/docs/render/contact.js b/docs/render/contact.js index 1aaf49d..23c57dc 100644 --- a/docs/render/contact.js +++ b/docs/render/contact.js @@ -16,7 +16,8 @@ let siteIcons = { "twitter.com": {icon: "twitter", reformat:(a) => a.replace(/twitter.com\/(.*)/, "@$1")}, "facebook.com": {icon: "facebook"}, "instagram.com": {icon: "instagram", reformat:(a) => a.replace(/instagram.com\/(.*)/, "@$1")}, - "linkedin.com": {icon: "linkedin"}, + "linkedin.com": {icon: "linkedin", reformat:(a) => a.replace(/linkedin.com\/in\/(.*)/, "@$1")}, + "read.cv": {icon: "readcv"}, "youtube.com": {icon: "youtube"}, "tiktok.com": {icon: "tiktok"}, "snapchat.com": {icon: "snapchat"}, diff --git a/docs/render/recipe.html b/docs/render/recipe.html index 227e961..e3ba421 100644 --- a/docs/render/recipe.html +++ b/docs/render/recipe.html @@ -1,6 +1,5 @@ -