From 3ea37fb1f626bf1c73cc237e8c069b6fde86abe9 Mon Sep 17 00:00:00 2001 From: Ayo Date: Tue, 30 May 2023 21:56:11 +0200 Subject: [PATCH] link to author --- _includes/head.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index 9c5ccf4..f9a8c3c 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -124,7 +124,10 @@ const image = document.createElement("img"); image.src = like.author.photo; image.alt = `Avatar for ${like.author.name}`; - likesAvatars.append(image); + const link = document.createElement("a"); + link.href = like.author.url; + link.append(image); + likesAvatars.append(link); }); likesWrapper.append(likesAvatars); @@ -181,11 +184,13 @@ row.append(cell); const author = document.createElement("p"); author.className = "author-wrapper"; - author.innerHTML = `Avatar for ${
+              author.innerHTML = `<a href=Avatar for ${
                 reply.author.name
               } ${ + }" /> ${ reply.author.name }${new Date( reply.published