nodebb-theme-harmony 2.1.24 → 2.1.26
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 +1 -1
- package/templates/category.tpl +6 -0
- package/templates/topic.tpl +8 -0
package/package.json
CHANGED
package/templates/category.tpl
CHANGED
|
@@ -28,6 +28,12 @@
|
|
|
28
28
|
<span title="{totalPostCount}" class="fw-bold">{humanReadableNumber(totalPostCount)}</span>
|
|
29
29
|
<span class="text-lowercase fw-normal">[[global:posts]]</span>
|
|
30
30
|
</span>
|
|
31
|
+
{{{ if !isNumber(cid) }}}
|
|
32
|
+
<a href="{./url}" class="badge text-body border border-gray-300 text-xs" data-ajaxify="false">
|
|
33
|
+
<span class="fw-normal">View Original</span>
|
|
34
|
+
<i class="fa fa-external-link"></i>
|
|
35
|
+
</a>
|
|
36
|
+
{{{ end }}}
|
|
31
37
|
</div>
|
|
32
38
|
</div>
|
|
33
39
|
|
package/templates/topic.tpl
CHANGED
|
@@ -20,6 +20,14 @@
|
|
|
20
20
|
<meta itemprop="name" content="{author.username}">
|
|
21
21
|
{{{ if author.userslug }}}<meta itemprop="url" content="{config.relative_path}/user/{author.userslug}">{{{ end }}}
|
|
22
22
|
</div>
|
|
23
|
+
<div itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter">
|
|
24
|
+
<meta itemprop="interactionType" content="https://schema.org/CommentAction">
|
|
25
|
+
<meta itemprop="userInteractionCount" content="{increment(postcount, "-1")}">
|
|
26
|
+
</div>
|
|
27
|
+
<div itemprop="interactionStatistic" itemscope itemtype="https://schema.org/InteractionCounter">
|
|
28
|
+
<meta itemprop="interactionType" content="https://schema.org/LikeAction">
|
|
29
|
+
<meta itemprop="userInteractionCount" content="{upvotes}">
|
|
30
|
+
</div>
|
|
23
31
|
|
|
24
32
|
<div class="d-flex flex-column gap-3">
|
|
25
33
|
<div class="d-flex gap-2 flex-wrap flex-column flex-md-row justify-content-between">
|