UI: Make blog title link to the actual blog entry
This commit is contained in:
parent
ecfd27094c
commit
f35c2529a6
@ -3,7 +3,9 @@ import { NodesBase } from "./NodesBase";
|
|||||||
export class Posts extends NodesBase {
|
export class Posts extends NodesBase {
|
||||||
static create$item(post) {
|
static create$item(post) {
|
||||||
let content = [];
|
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')
|
.addClass('h1 text-uppercase font-weight-bold d-block pt-5 pb-2')
|
||||||
.text(post.name);
|
.text(post.name);
|
||||||
content.push($title);
|
content.push($title);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user