nodebb-theme-persona 15.0.0 → 15.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "15.0.0",
3
+ "version": "15.0.1",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.14.0"
6
6
  },
@@ -8,7 +8,7 @@
8
8
  </div>
9
9
  <div class="post-content text-xs text-break line-clamp-sm-2 lh-sm position-relative flex-fill">
10
10
  <a class="stretched-link" tabindex="-1" href="{config.relative_path}/topic/{./topic.slug}{{{ if ./index }}}/{./index}{{{ end }}}" aria-label="[[global:lastpost]]"></a>
11
- {{txEscape(./content)}}
11
+ {{renderContent(./content, ./deleted)}}
12
12
  </div>
13
13
  </div>
14
14
  {{{ end }}}
@@ -4,8 +4,8 @@
4
4
  {{{ if !./isMainPost }}}RE: {{{ end }}}{./topic.title}
5
5
  </a>
6
6
 
7
- <div component="post/content" class="content mb-3">
8
- {{txEscape(../content)}}
7
+ <div component="post/content" class="content mb-3 text-break">
8
+ {{renderContent(./content, ./deleted)}}
9
9
  </div>
10
10
 
11
11
  <div class="mb-3">
@@ -9,4 +9,4 @@
9
9
  </small>
10
10
  </div>
11
11
 
12
- <div>{{post.content}}</div>
12
+ <div>{{renderContent(post.content, post.deleted)}}</div>
@@ -72,7 +72,7 @@
72
72
  <br />
73
73
 
74
74
  <div class="content" component="post/content" itemprop="text">
75
- {{posts.content}}
75
+ {{renderContent(posts.content, posts.deleted)}}
76
76
  </div>
77
77
 
78
78
  <div class="post-footer">
@@ -21,7 +21,9 @@
21
21
  </div>
22
22
  <div class="flex-grow-1 d-flex flex-wrap gap-1 position-relative">
23
23
  <h3 component="topic/header" class="title text-break fs-5 fw-semibold m-0 tracking-tight w-100 {{{ if showSelect }}}me-4 me-lg-0{{{ end }}}">
24
- <a class="text-reset" href="{{{ if topics.noAnchor }}}#{{{ else }}}{config.relative_path}/topic/{./slug}{{{ if ./bookmark }}}/{./bookmark}{{{ end }}}{{{ end }}}">{./title}</a>
24
+ <a class="text-reset" href="{{{ if topics.noAnchor }}}#{{{ else }}}{config.relative_path}/topic/{./slug}{{{ if ./bookmark }}}/{./bookmark}{{{ end }}}{{{ end }}}">
25
+ {renderContent(./title, ./deleted)}
26
+ </a>
25
27
  </h3>
26
28
  <div component="topic/labels" class="d-flex flex-wrap gap-1 w-100 align-items-center">
27
29
  <span component="topic/watched" class="badge border border-gray-300 text-body {{{ if !./followed }}}hidden{{{ end }}}">
@@ -119,7 +121,7 @@
119
121
  </div>
120
122
  <div class="post-content text-xs ps-2 line-clamp-sm-2 lh-sm text-break position-relative flex-fill">
121
123
  <a class="stretched-link" tabindex="-1" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" aria-label="[[global:lastpost]]"></a>
122
- {{txEscape(./teaser.content)}}
124
+ {{renderContent(./teaser.content)}}
123
125
  </div>
124
126
  {{{ end }}}
125
127
  {{{ end }}}