From d897ce565fdd609efcc8377d45f98dc616db3fce Mon Sep 17 00:00:00 2001 From: kaotisk Date: Thu, 25 Jul 2024 15:58:18 +0300 Subject: some styling updates --- src/js/arching-kaos-modules-news.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/js/arching-kaos-modules-news.js') diff --git a/src/js/arching-kaos-modules-news.js b/src/js/arching-kaos-modules-news.js index 6bd3b60..a4371e6 100644 --- a/src/js/arching-kaos-modules-news.js +++ b/src/js/arching-kaos-modules-news.js @@ -5,8 +5,12 @@ function akModuleNews(zblockIPFSHash, zblockObject, blockObject, json){ var articleContainerElement = document.createElement("article"); articleContainerElement.id = 'news-'+zblockIPFSHash; if(json.title){ + var ubs = document.createElement("a"); + ubs.innerText = json.title; + ubs.href = '#news-'+zblockIPFSHash; + articleContainerElement.appendChild(ubs); var ahref = document.createElement("a"); - ahref.innerText = json.title +' [permalink]'; + ahref.innerText = '[permalink]'; ahref.target = '_blank'; ahref.href = 'https://news.arching-kaos.net/?from_zblock='+zblockIPFSHash; articleContainerElement.appendChild(ahref); -- cgit v1.2.3