UI: Make blog title link to the actual blog entry

This commit is contained in:
2019-02-02 04:03:39 +01:00
parent ecfd27094c
commit f35c2529a6

View File

@@ -3,7 +3,9 @@ import { NodesBase } from "./NodesBase";
export class Posts extends NodesBase {
static create$item(post) {
let content = [];
let $title = $('<div>')
let $title = $('<a>')
.attr('href', '/nodes/' + post._id + '/redir')
.attr('title', post.name)
.addClass('h1 text-uppercase font-weight-bold d-block pt-5 pb-2')
.text(post.name);
content.push($title);