nodebb-theme-harmony 1.2.21 → 1.2.22
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/topic.tpl +7 -3
package/package.json
CHANGED
package/templates/topic.tpl
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
{{{ end }}}
|
|
9
9
|
|
|
10
10
|
<div class="d-flex flex-column gap-3" itemid="{url}" itemscope itemtype="https://schema.org/DiscussionForumPosting">
|
|
11
|
+
<meta itemprop="headline" content="{title}">
|
|
12
|
+
<meta itemprop="url" content="{url}">
|
|
11
13
|
<meta itemprop="datePublished" content="{timestampISO}">
|
|
12
14
|
<meta itemprop="dateModified" content="{lastposttimeISO}">
|
|
13
15
|
<meta itemprop="author" itemscope itemtype="https://schema.org/Person" itemref="topicAuthorName{{{ if author.userslug }}} topicAuthorUrl{{{ end }}}">
|
|
@@ -15,7 +17,7 @@
|
|
|
15
17
|
{{{ if author.userslug }}}<meta id="topicAuthorUrl" itemprop="url" content="{config.relative_path}/user/{author.userslug}">{{{ end }}}
|
|
16
18
|
<div class="d-flex flex-wrap">
|
|
17
19
|
<div class="d-flex flex-column gap-3 flex-grow-1">
|
|
18
|
-
<h1 component="post/header" class="tracking-tight fw-semibold fs-3 mb-0 text-break {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}"
|
|
20
|
+
<h1 component="post/header" class="tracking-tight fw-semibold fs-3 mb-0 text-break {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}">
|
|
19
21
|
<span class="topic-title" component="topic/title">{title}</span>
|
|
20
22
|
</h1>
|
|
21
23
|
|
|
@@ -68,12 +70,14 @@
|
|
|
68
70
|
<div class="d-flex gap-0 gap-lg-5">
|
|
69
71
|
<div class="posts-container" style="min-width: 0;">
|
|
70
72
|
<ul component="topic" class="posts timeline list-unstyled mt-sm-2 p-0 py-3" style="min-width: 0;" data-tid="{tid}" data-cid="{cid}">
|
|
71
|
-
{{{each posts}}}
|
|
73
|
+
{{{ each posts }}}
|
|
72
74
|
<li component="post" class="pt-4 {{{ if posts.deleted }}}deleted{{{ end }}} {{{ if posts.selfPost }}}self-post{{{ end }}} {{{ if posts.topicOwnerPost }}}topic-owner-post{{{ end }}}" <!-- IMPORT partials/data/topic.tpl -->>
|
|
73
75
|
<a component="post/anchor" data-index="{./index}" id="{increment(./index, "1")}"></a>
|
|
74
76
|
|
|
75
77
|
<meta itemprop="datePublished" content="{./timestampISO}">
|
|
78
|
+
{{{ if ./editedISO }}}
|
|
76
79
|
<meta itemprop="dateModified" content="{./editedISO}">
|
|
80
|
+
{{{ end }}}
|
|
77
81
|
|
|
78
82
|
<!-- IMPORT partials/topic/post.tpl -->
|
|
79
83
|
</li>
|
|
@@ -82,7 +86,7 @@
|
|
|
82
86
|
<!-- IMPORT partials/topic/event.tpl -->
|
|
83
87
|
{{{ end }}}
|
|
84
88
|
{{{ end }}}
|
|
85
|
-
{{{end}}}
|
|
89
|
+
{{{ end }}}
|
|
86
90
|
</ul>
|
|
87
91
|
{{{ if browsingUsers }}}
|
|
88
92
|
<div class="visible-xs">
|