nodebb-theme-harmony 3.0.0 → 3.0.2

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-harmony",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
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 }}}
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
 
16
16
  <div component="post/content" class="content text-sm text-break">
17
- {{txEscape(./content)}}
17
+ {{renderContent(./content, ./deleted)}}
18
18
  </div>
19
19
  </div>
20
20
  <div class="mb-3 d-flex flex-wrap gap-1 w-100">
@@ -8,4 +8,4 @@
8
8
  <span class="timeago text-nowrap text-muted" title="{post.timestampISO}"></span>
9
9
  </div>
10
10
 
11
- <div class="text-sm">{{post.content}}</div>
11
+ <div class="text-sm">{{renderContent(post.content, post.deleted)}}</div>
@@ -78,7 +78,7 @@
78
78
  </div>
79
79
 
80
80
  <div class="content text-break" component="post/content" itemprop="text">
81
- {{txEscape(posts.content)}}
81
+ {{renderContent(posts.content, posts.deleted)}}
82
82
  </div>
83
83
 
84
84
  <div component="post/footer" class="post-footer border-bottom pb-2">
@@ -21,7 +21,7 @@
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 text-wrap-pretty 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 }}}">{renderContent(./title, ./deleted)}</a>
25
25
  </h3>
26
26
  <span component="topic/labels" class="d-flex flex-wrap gap-1 w-100">
27
27
  <span component="topic/watched" class="badge border border-gray-300 text-body {{{ if !./followed }}}hidden{{{ end }}}">
@@ -119,7 +119,7 @@
119
119
  </div>
120
120
  <div class="post-content text-xs ps-2 line-clamp-sm-2 lh-sm text-break position-relative flex-fill">
121
121
  <a class="stretched-link" tabindex="-1" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" aria-label="[[global:lastpost]]"></a>
122
- {{txEscape(./teaser.content)}}
122
+ {{renderContent(./teaser.content)}}
123
123
  </div>
124
124
  {{{ end }}}
125
125
  {{{ end }}}
@@ -43,7 +43,7 @@
43
43
  </div>
44
44
  <div class="d-grid gap-0">
45
45
  <div class="title fw-semibold">
46
- <a class="text-reset stretched-link" href="{{{ if ./link }}}{./link}{{{ else }}}{config.relative_path}/category/{./slug}{{{ end }}}" itemprop="url">{./name}</a>
46
+ <a class="text-reset stretched-link" href="{{{ if ./link }}}{./link}{{{ else }}}{config.relative_path}/category/{./slug}{{{ end }}}" itemprop="url">{{tx(./name)}}</a>
47
47
  </div>
48
48
  {{{ if ./descriptionParsed }}}
49
49
  <div class="description text-muted text-xs w-100 line-clamp-sm-5">{{./descriptionParsed}}</div>