aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/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);