nodebb-theme-harmony 1.2.30 → 2.0.0-pre.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
|
@@ -32,25 +32,25 @@
|
|
|
32
32
|
{{{ end }}}
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
35
|
-
{{{ if !./link }}}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</div>
|
|
43
|
-
<div class="card card-header border-0 p-2 overflow-hidden rounded-1 d-flex flex-column align-items-center">
|
|
44
|
-
<span class="fs-5 ff-secondary lh-1" title="{./totalPostCount}">{humanReadableNumber(./totalPostCount, 0)}</span>
|
|
45
|
-
<span class="d-none d-xl-flex text-lowercase text-xs">[[global:posts]]</span>
|
|
46
|
-
<i class="d-xl-none fa fa-fw text-xs text-muted opacity-75 fa-message"></i>
|
|
47
|
-
</div>
|
|
35
|
+
{{{ if (!./link && !./isSection) }}}
|
|
36
|
+
<div class="d-flex col-lg-5 col-12 align-content-stretch">
|
|
37
|
+
<div class="meta stats d-none d-lg-grid col-6 gap-1 pe-2 text-muted" style="grid-template-columns: 1fr 1fr;">
|
|
38
|
+
<div class="card card-header border-0 p-2 overflow-hidden rounded-1 d-flex flex-column align-items-center">
|
|
39
|
+
<span class="fs-5 ff-secondary lh-1" title="{./totalTopicCount}">{humanReadableNumber(./totalTopicCount, 0)}</span>
|
|
40
|
+
<span class="d-none d-xl-flex text-lowercase text-xs">[[global:topics]]</span>
|
|
41
|
+
<i class="d-xl-none fa fa-fw text-xs text-muted opacity-75 fa-list"></i>
|
|
48
42
|
</div>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
<div class="card card-header border-0 p-2 overflow-hidden rounded-1 d-flex flex-column align-items-center">
|
|
44
|
+
<span class="fs-5 ff-secondary lh-1" title="{./totalPostCount}">{humanReadableNumber(./totalPostCount, 0)}</span>
|
|
45
|
+
<span class="d-none d-xl-flex text-lowercase text-xs">[[global:posts]]</span>
|
|
46
|
+
<i class="d-xl-none fa fa-fw text-xs text-muted opacity-75 fa-message"></i>
|
|
52
47
|
</div>
|
|
53
|
-
{{{ end }}}
|
|
54
48
|
</div>
|
|
49
|
+
{{{ if !config.hideCategoryLastPost }}}
|
|
50
|
+
<div component="topic/teaser" class="teaser col-lg-6 col-12 {{{ if !config.theme.mobileTopicTeasers }}}d-none d-lg-block{{{ end }}}">
|
|
51
|
+
<!-- IMPORT partials/categories/lastpost.tpl -->
|
|
52
|
+
</div>
|
|
53
|
+
{{{ end }}}
|
|
54
|
+
</div>
|
|
55
55
|
{{{ end }}}
|
|
56
56
|
</li>
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
</div>
|
|
66
66
|
<div class="d-flex align-items-center gap-1 flex-grow-1 justify-content-end">
|
|
67
67
|
<span class="bookmarked opacity-0 text-primary"><i class="fa fa-bookmark-o"></i></span>
|
|
68
|
-
<a href="{
|
|
68
|
+
<a href="{generatePostUrl(@value)}" class="post-index text-muted d-none d-md-inline">#{increment(./index, "1")}</a>
|
|
69
69
|
</div>
|
|
70
70
|
</div>
|
|
71
71
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{{{ if widgets.header.length }}}
|
|
2
|
+
<div data-widget-area="header">
|
|
3
|
+
{{{each widgets.header}}}
|
|
4
|
+
{{widgets.header.html}}
|
|
5
|
+
{{{end}}}
|
|
6
|
+
</div>
|
|
7
|
+
{{{ end }}}
|
|
8
|
+
|
|
9
|
+
<div class="row">
|
|
10
|
+
<div class="world {{{if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
|
|
11
|
+
<!-- IMPORT partials/topic-list-bar.tpl -->
|
|
12
|
+
|
|
13
|
+
<div class="category">
|
|
14
|
+
{{{ if !topics.length }}}
|
|
15
|
+
<div class="alert alert-info" id="category-no-topics">[[activitypub:no-topics]]</div>
|
|
16
|
+
{{{ end }}}
|
|
17
|
+
|
|
18
|
+
<!-- IMPORT partials/topics_list.tpl -->
|
|
19
|
+
|
|
20
|
+
{{{ if config.usePagination }}}
|
|
21
|
+
<!-- IMPORT partials/paginator.tpl -->
|
|
22
|
+
{{{ end }}}
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
|
|
26
|
+
{{{ each widgets.sidebar }}}
|
|
27
|
+
{{widgets.sidebar.html}}
|
|
28
|
+
{{{ end }}}
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div data-widget-area="footer">
|
|
33
|
+
{{{each widgets.footer}}}
|
|
34
|
+
{{widgets.footer.html}}
|
|
35
|
+
{{{end}}}
|
|
36
|
+
</div>
|