aboutsummaryrefslogtreecommitdiff
path: root/src/js/arching-kaos-modules-news.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-07-25 15:58:18 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-07-25 15:58:18 +0300
commitd897ce565fdd609efcc8377d45f98dc616db3fce (patch)
tree3c6adbec928e2a41be65b4add45e30b3db294de8 /src/js/arching-kaos-modules-news.js
parent9bee90d9ffac4ae352befc9ec43803a50524871f (diff)
downloadarching-kaos-web-ui-d897ce565fdd609efcc8377d45f98dc616db3fce.tar.gz
arching-kaos-web-ui-d897ce565fdd609efcc8377d45f98dc616db3fce.tar.bz2
arching-kaos-web-ui-d897ce565fdd609efcc8377d45f98dc616db3fce.zip
some styling updates
Diffstat (limited to 'src/js/arching-kaos-modules-news.js')
-rw-r--r--src/js/arching-kaos-modules-news.js6
1 files changed, 5 insertions, 1 deletions
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);