hexo-theme-stellar 1.25.0 → 1.26.0

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.
Files changed (117) hide show
  1. package/_config.yml +80 -32
  2. package/_data/icons.yml +33 -0
  3. package/_data/widgets.yml +2 -16
  4. package/languages/zh-CN.yml +1 -1
  5. package/languages/zh-TW.yml +1 -1
  6. package/layout/404.ejs +2 -2
  7. package/layout/_partial/cover/index.ejs +5 -5
  8. package/layout/_partial/cover/post_cover.ejs +1 -1
  9. package/layout/_partial/cover/wiki_cover.ejs +2 -2
  10. package/layout/_partial/head.ejs +5 -8
  11. package/layout/_partial/main/article/article_footer.ejs +7 -15
  12. package/layout/_partial/main/article/read_next.ejs +6 -6
  13. package/layout/_partial/main/article/related_posts.ejs +1 -1
  14. package/layout/_partial/main/footer.ejs +1 -1
  15. package/layout/_partial/main/navbar/article_top_area.ejs +35 -0
  16. package/layout/_partial/main/navbar/author_banner.ejs +1 -3
  17. package/layout/_partial/main/navbar/breadcrumb/blog.ejs +34 -0
  18. package/layout/_partial/main/navbar/breadcrumb/page.ejs +10 -0
  19. package/layout/_partial/main/navbar/breadcrumb/wiki.ejs +20 -0
  20. package/layout/_partial/main/navbar/dateinfo.ejs +32 -0
  21. package/layout/_partial/main/navbar/ghinfo.ejs +25 -0
  22. package/layout/_partial/main/navbar/nav_tabs_blog.ejs +3 -3
  23. package/layout/_partial/main/navbar/nav_tabs_wiki.ejs +2 -2
  24. package/layout/_partial/main/post_list/paginator.ejs +1 -1
  25. package/layout/_partial/main/post_list/post_card.ejs +3 -3
  26. package/layout/_partial/menubtn.ejs +1 -1
  27. package/layout/_partial/plugins/ai/tianli_gpt.ejs +4 -3
  28. package/layout/_partial/plugins/comments/artalk/layout.ejs +1 -1
  29. package/layout/_partial/plugins/comments/artalk/script.ejs +1 -1
  30. package/layout/_partial/plugins/comments/beaudar/layout.ejs +1 -1
  31. package/layout/_partial/plugins/comments/giscus/layout.ejs +1 -1
  32. package/layout/_partial/plugins/comments/layout.ejs +3 -3
  33. package/layout/_partial/plugins/comments/twikoo/layout.ejs +1 -1
  34. package/layout/_partial/plugins/comments/utterances/layout.ejs +1 -1
  35. package/layout/_partial/plugins/comments/waline/layout.ejs +1 -1
  36. package/layout/_partial/sidebar/index.ejs +72 -71
  37. package/layout/_partial/sidebar/logo.ejs +87 -0
  38. package/layout/_partial/sidebar/menu.ejs +23 -18
  39. package/layout/_partial/sidebar/search.ejs +42 -0
  40. package/layout/_partial/widgets/components/link.ejs +21 -0
  41. package/layout/_partial/widgets/components/linklist.ejs +27 -0
  42. package/layout/_partial/widgets/ghissues.ejs +7 -9
  43. package/layout/_partial/widgets/ghrepo.ejs +10 -12
  44. package/layout/_partial/widgets/ghuser.ejs +2 -6
  45. package/layout/_partial/widgets/linklist.ejs +17 -0
  46. package/layout/_partial/widgets/markdown.ejs +5 -2
  47. package/layout/_partial/widgets/recent.ejs +12 -8
  48. package/layout/_partial/widgets/related.ejs +13 -9
  49. package/layout/_partial/widgets/search.ejs +0 -40
  50. package/layout/_partial/widgets/tagcloud.ejs +2 -2
  51. package/layout/_partial/widgets/timeline.ejs +2 -2
  52. package/layout/_partial/widgets/toc.ejs +24 -24
  53. package/layout/archive.ejs +2 -2
  54. package/layout/categories.ejs +1 -1
  55. package/layout/index.ejs +4 -20
  56. package/layout/index_topic.ejs +1 -1
  57. package/layout/index_wiki.ejs +2 -2
  58. package/layout/layout.ejs +53 -21
  59. package/layout/page.ejs +59 -12
  60. package/layout/tags.ejs +1 -1
  61. package/package.json +2 -2
  62. package/scripts/events/lib/config.js +28 -24
  63. package/scripts/events/lib/doc_tree.js +27 -19
  64. package/scripts/events/lib/merge_posts.js +0 -1
  65. package/scripts/generators/topic.js +3 -3
  66. package/scripts/generators/wiki.js +5 -4
  67. package/scripts/helpers/category_color.js +1 -1
  68. package/scripts/helpers/icon.js +16 -0
  69. package/scripts/helpers/parse_config.js +18 -16
  70. package/scripts/helpers/scrollreveal.js +6 -6
  71. package/scripts/tags/lib/toc.js +1 -1
  72. package/source/css/_common/blur.styl +1 -8
  73. package/source/css/_common/cap.styl +1 -1
  74. package/source/css/_common/device.styl +2 -2
  75. package/source/css/_common/highlight.styl +2 -2
  76. package/source/css/_common/layout.styl +6 -0
  77. package/source/css/_common/svg.styl +3 -0
  78. package/source/css/_custom.styl +9 -2
  79. package/source/css/_defines/theme.styl +10 -0
  80. package/source/css/_layout/layout.styl +17 -4
  81. package/source/css/_layout/list.styl +5 -2
  82. package/source/css/_layout/main.styl +5 -4
  83. package/source/css/_layout/md.styl +12 -11
  84. package/source/css/_layout/partial/paginator.styl +2 -2
  85. package/source/css/_layout/sidebar/footer.styl +4 -31
  86. package/source/css/_layout/sidebar/{header.styl → logo.styl} +11 -41
  87. package/source/css/_layout/sidebar/menu.styl +53 -0
  88. package/source/css/_layout/sidebar/nav-area.styl +2 -0
  89. package/source/css/_layout/{widgets → sidebar}/search.styl +51 -50
  90. package/source/css/_layout/sidebar/sidebar.styl +21 -31
  91. package/source/css/_layout/tag-plugins/banner.styl +9 -10
  92. package/source/css/_layout/tag-plugins/okr.styl +0 -1
  93. package/source/css/_layout/tag-plugins/tabs.styl +2 -2
  94. package/source/css/_layout/tag-plugins/toc.styl +1 -1
  95. package/source/css/_layout/widgets/components.styl +49 -0
  96. package/source/css/_layout/widgets/ghrepo.styl +0 -1
  97. package/source/css/_layout/widgets/ghuser.styl +0 -23
  98. package/source/css/_layout/widgets/list.styl +28 -0
  99. package/source/css/_layout/widgets/markdown.styl +20 -0
  100. package/source/css/_layout/widgets/related.styl +36 -5
  101. package/source/css/_layout/widgets/timeline.styl +21 -2
  102. package/source/css/_layout/widgets/toc_blog.styl +1 -1
  103. package/source/css/_layout/widgets/toc_common.styl +12 -12
  104. package/source/css/_layout/widgets/toc_wiki.styl +38 -25
  105. package/source/css/_layout/widgets/widgets.styl +25 -20
  106. package/source/css/_plugins/comments/twikoo.styl +9 -9
  107. package/source/css/_plugins/scrollreveal.styl +1 -1
  108. package/source/css/_plugins/tianli_gpt.styl +12 -14
  109. package/source/js/main.js +5 -2
  110. package/source/js/plugins/copycode.js +3 -3
  111. package/layout/_partial/main/header/index.ejs +0 -3
  112. package/layout/_partial/main/navbar/breadcrumb.ejs +0 -161
  113. package/layout/_partial/sidebar/header.ejs +0 -58
  114. package/layout/post.ejs +0 -33
  115. package/layout/topic.ejs +0 -28
  116. package/layout/wiki.ejs +0 -32
  117. package/source/css/_layout/widgets/recent.styl +0 -15
@@ -1,8 +1,39 @@
1
- .widget-wrapper.related .widget-body a
2
- margin-top: 0.5rem
3
- margin-bottom: 1rem
4
- .title
1
+
2
+ .widget-wrapper.post-card .widget-body
3
+ max-width: 100%
4
+ margin: 1rem 0
5
+ .item+.item
6
+ margin-top: 8px
7
+ .item
8
+ line-height: 1.2
9
+ background: var(--alpha20)
10
+ padding: 10px 16px
11
+ border-radius: $border-card
12
+ display: block
13
+ border-left: 0
14
+ box-sizing: border-box
15
+ .title
16
+ color: var(--text-p1)
17
+ font-weight: 500
18
+ font-size: 1rem
19
+ display: -webkit-box
20
+ -webkit-box-orient: vertical
21
+ overflow: hidden
22
+ -webkit-line-clamp: 1
5
23
  font-weight: 700
6
24
  font-size: $fs-14
7
25
  .excerpt
8
- -webkit-line-clamp: 3
26
+ color: var(--text-p3)
27
+ font-size: $fs-12
28
+ margin-top: 0.5rem
29
+ display: -webkit-box
30
+ -webkit-box-orient: vertical
31
+ overflow: hidden
32
+ -webkit-line-clamp: 2
33
+
34
+ .item
35
+ trans1 background
36
+ .item.active
37
+ background: var(--alpha50)
38
+ .item:hover
39
+ background: var(--alpha50)
@@ -3,10 +3,10 @@
3
3
  margin-top: 0.5rem
4
4
  .tag-plugin.timeline .timenode
5
5
  .header
6
- margin-bottom: 0.5rem
6
+ margin: 0.5rem 16px
7
7
  txt-ellipsis()
8
8
  .user-info
9
- background: var(--block)
9
+ background: var(--alpha50)
10
10
  &:hover
11
11
  background: $color-hover
12
12
  color: var(--card)
@@ -14,4 +14,23 @@
14
14
  display: none
15
15
  &+.timenode
16
16
  margin-top: 0.75rem
17
+ .header p
18
+ color: var(--text-p2)
19
+ .body
20
+ border-radius: $border-card
21
+ background: var(--alpha50)
22
+ box-shadow: none
23
+
24
+ a
25
+ trans1 all
26
+ border-bottom: 1px solid var(--text-p0)
27
+ color: var(--text-p1)
28
+ &:hover
29
+ color: $color-hover
30
+ border-bottom: 1px solid $color-hover
31
+ code
32
+ background: none
33
+ padding: 0
34
+ margin: 0
35
+
17
36
 
@@ -1,3 +1,3 @@
1
1
  .widget-wrapper.toc.single .doc-tree
2
2
  &.active>.toc
3
- border-left: 2px solid var(--block-hover)
3
+ border-left: 2px solid var(--alpha50)
@@ -1,12 +1,12 @@
1
- .widget-wrapper.toc .widget-header
2
- margin-top: 1rem
3
1
 
4
2
  .widget-wrapper.toc.single .widget-header
5
3
  font-weight: 500
6
4
  font-size: $fs-12
7
- >span
8
- margin: 0.5rem 0
9
5
 
6
+ .toc-item
7
+ margin-top: 2px
8
+ .toc-child
9
+ margin-top: 2px
10
10
  .widget-wrapper.toc .widget-body
11
11
  margin-top: 0
12
12
  ul ul, ul ol
@@ -14,8 +14,6 @@
14
14
  ol ul, ol ol
15
15
  padding-left: 0
16
16
 
17
- .doc-tree
18
- margin: 4px 0
19
17
  .toc
20
18
  padding: 0
21
19
  margin: 0
@@ -43,7 +41,7 @@
43
41
  padding: 0
44
42
  list-style: none
45
43
  &.active
46
- color: $color-theme
44
+ background: var(--alpha50)
47
45
  border-left-color: @color
48
46
  .toc-child .toc-item
49
47
  padding: 0
@@ -51,8 +49,9 @@
51
49
  color: inherit
52
50
  display: block
53
51
  line-height: 1.2
54
- border-radius: 4px
52
+ border-radius: $border-bar
55
53
  position: relative
54
+ trans1 background
56
55
  &:before
57
56
  content: ''
58
57
  position: absolute
@@ -61,14 +60,15 @@
61
60
  bottom: 'calc(50% - %s)' % 6px
62
61
  width: 2px
63
62
  border-radius: 2px
64
- background: $color-theme
63
+ background: var(--text-p0)
65
64
  visibility: hidden
66
- &:hover
67
- background: var(--block-hover)
68
65
  &.active
69
- color: $color-theme !important
66
+ background: var(--alpha50)
70
67
  &:before
71
68
  visibility: visible
69
+ &:hover
70
+ background: var(--alpha100)
71
+
72
72
 
73
73
  // 始终折叠
74
74
  .widget-wrapper.toc[collapse='true']
@@ -1,48 +1,61 @@
1
- .widget-wrapper.toc.multi .widget-header
2
- color: var(--text-p1)
3
- font-size: $fs-14
1
+ .doc-tree+.doc-tree
2
+ margin-top: 2px
4
3
 
4
+ .widget-wrapper.toc.multi
5
+ // .widget-header
6
+ // color: $color-theme
7
+ // filter: brightness(75%)
8
+ .widget-body+.widget-header
9
+ margin-top: 28px
5
10
 
6
11
  // 其它分页链接
7
12
  .widget-wrapper.toc.multi .doc-tree
8
- border-radius: $border-bar
9
- background: var(--block)
13
+ border-radius: $border-card
10
14
  overflow: hidden
11
- border: 1px solid var(--block-border)
12
15
  a.doc-tree-link
13
- color: var(--text-p2)
14
- padding: 0.5rem
15
- display: block
16
- font-size: $fs-12
17
- font-weight: 500
16
+ color: var(--text-p1)
17
+ padding: 0 16px
18
+ display: flex
19
+ min-height: 32px
20
+ justify-content: space-between
21
+ align-items: center
22
+ font-size: $fs-14
18
23
  position: relative
24
+ trans1 background
25
+ .toc-text
26
+ txt-ellipsis()
27
+ svg,img
28
+ flex-shrink: 0
29
+ width: 1em
30
+ height: 1em
31
+ transform: scale(1.2)
19
32
  &:after
20
33
  position: absolute
21
34
  right: .5rem
22
- &.active
23
- color: var(--text-p1)
24
- &:only-child
25
- background: var(--card)
35
+ &:only-child
36
+ &.active
37
+ background: var(--alpha50)
38
+ &:hover
39
+ background: var(--alpha100)
26
40
  &:hover
27
- background: var(--block-hover)
28
- &:after
29
- content: '+'
41
+ background: var(--alpha100)
30
42
 
31
43
 
32
44
  // 当前分页链接
33
45
  .widget-wrapper.toc.multi .doc-tree.active
34
46
  a.doc-tree-link
35
- background: var(--block)
36
- font-weight: 700
37
- &:not(:only-child)
38
- border-bottom: 1px solid var(--block-border)
47
+ background: var(--alpha100)
48
+ font-weight: 500
39
49
  &:hover:after
40
50
  content: none
41
51
  >.toc
42
- padding: 4px
43
- background: var(--card)
52
+ padding: 4px 10px
53
+ border: 1px solid var(--alpha50)
54
+ background: var(--alpha20)
55
+ border-bottom-left-radius: $border-card
56
+ border-bottom-right-radius: $border-card
44
57
  a.toc-link:before
45
58
  left: -2px
46
59
  width: 4px
47
60
  a.toc-link:hover
48
- background: var(--block)
61
+ background: var(--alpha100)
@@ -1,6 +1,7 @@
1
1
  .widgets
2
2
  .loading-wrap
3
3
  margin: 0.5rem 0
4
+ background: var(--alpha50)
4
5
 
5
6
  .widgets
6
7
  overflow: scroll
@@ -9,6 +10,7 @@
9
10
  scrollbar(0, 0)
10
11
  z-index: 1
11
12
  line-height: 1.2
13
+ margin: 0 var(--gap-l)
12
14
  .widget-wrapper
13
15
  .widget-header
14
16
  padding-left: var(--gap-l)
@@ -16,33 +18,39 @@
16
18
  display: flex
17
19
  justify-content: space-between
18
20
  align-items: center
21
+ line-height: 28px
19
22
  font-weight: 500
20
- position: sticky
21
- top: -2px
22
- background: var(--site-bg)
23
- padding-top: 2px
24
- z-index 1
23
+ font-size: $fs-12
24
+ color: var(--text-p1)
25
25
  .item
26
26
  display: block
27
- >span
28
- margin: 0.25rem 0
27
+ >span
29
28
  text-align: left
29
+ opacity 0.6
30
30
  &:empty
31
31
  display: none
32
32
  .cap-action
33
- hover-block 4px 4px
34
33
  line-height: 0
35
- color: var(--text-meta)
36
- trans2: color background
37
- .icon
38
- fill: var(--text-meta)
34
+ color: inherit
35
+ opacity 0.6
36
+ trans2: opacity background
37
+ border-radius: 4px
38
+ padding: 6px
39
+ margin-right: -5px
40
+ svg
41
+ height: 1em
42
+ width: auto
43
+ transform: scale(1.2)
44
+ fill: var(--text-p2)
39
45
  &:hover
40
46
  color: $color-hover
41
- .icon
47
+ background: var(--alpha100)
48
+ opacity 1
49
+ svg
42
50
  fill: $color-hover
43
51
 
44
52
  .widget-body
45
- margin: 0.5rem var(--gap-l)
53
+ margin: 0.5rem 0
46
54
  color: var(--text-p1)
47
55
  p
48
56
  margin-top: .5em
@@ -50,11 +58,8 @@
50
58
  line-height: 1.5
51
59
  .widget-header+.widget-body
52
60
  margin-top: 0
53
- .widget-wrapper+.widget-wrapper .widget-header
54
- margin-top: 3rem
55
- .widget-wrapper+.widget-wrapper.toc .widget-header
56
- margin-top: 1rem
61
+
57
62
 
58
63
  .widget-wrapper
59
- display: block
60
- margin: 2rem 0
64
+ display: block
65
+ margin: 32px 0
@@ -1,5 +1,5 @@
1
1
  .cmt-body.twikoo
2
- --twikoo-lighttext: #ef794f;
2
+ --twikoo-lighttext: $color-theme;
3
3
  --twikoo-secondtext: #909094;
4
4
  --twikoo-emoji-background: #f8f8f8;
5
5
  --twikoo-theme: $color-theme;
@@ -8,14 +8,14 @@
8
8
  .tk-content
9
9
  .vemoji, .tk-owo-emotion
10
10
  width: unset;
11
- border-radius: 0;
11
+ border-radius: $border-image;
12
12
  max-height: 24px;
13
13
  max-width: 100px;
14
14
 
15
15
  img
16
16
  max-width: 400px;
17
17
  max-height: 400px;
18
- border-radius: 8px;
18
+ border-radius: $border-image;
19
19
 
20
20
  .OwO
21
21
  .OwO-body
@@ -58,7 +58,7 @@
58
58
  width: auto
59
59
  border: none
60
60
  padding: 6px 2rem
61
- border-radius: 4px
61
+ border-radius: $border-block
62
62
  background: var(--block)
63
63
  color: var(--text-p1)
64
64
  line-height: 2
@@ -74,7 +74,7 @@
74
74
  margin-bottom: 1rem
75
75
  border: 1px dashed var(--block-border);
76
76
  padding: 1rem;
77
- border-radius: 4px;
77
+ border-radius: $border-block;
78
78
  background: var(--card);
79
79
 
80
80
  &:hover
@@ -86,7 +86,7 @@
86
86
 
87
87
  .tk-submit
88
88
  padding: 1rem 1rem 0 1rem;
89
- border-radius: 4px;
89
+ border-radius: $border-block;
90
90
  background: var(--card);
91
91
 
92
92
  .tk-tag
@@ -108,9 +108,9 @@
108
108
 
109
109
  set_darkmode_comments()
110
110
  .cmt-body.twikoo
111
- --twikoo-lighttext: #f2b94b;
112
- --twikoo-secondtext: #a1a2b8;
113
- --twikoo-theme: #409eff;
111
+ --twikoo-lighttext: $color-link;
112
+ --twikoo-secondtext: var(--text-p2);
113
+ --twikoo-theme: $color-theme;
114
114
 
115
115
  if hexo-config('style.darkmode') == 'auto'
116
116
  @media (prefers-color-scheme: dark)
@@ -1,2 +1,2 @@
1
- .reveal
1
+ .slide-up
2
2
  visibility: hidden
@@ -1,7 +1,7 @@
1
1
  .post-TianliGPT
2
2
  --heo-none: #00000000
3
- --heo-theme = var(--theme-link)
4
- --heo-main: var(--theme-link)
3
+ --heo-theme = $color-theme
4
+ --heo-main: $color-theme
5
5
  --heo-snackbar-time: 5s
6
6
  --heo-theme-none: #4259ef01
7
7
  --heo-background: var(--site-bg)
@@ -18,11 +18,10 @@
18
18
 
19
19
  .post-TianliGPT
20
20
  background: var(--block)
21
- border-radius: 12px
21
+ border-radius: $border-block
22
22
  padding: 12px
23
23
  line-height: 1.3
24
24
  border: var(--style-border-always)
25
- margin: 16px 0
26
25
 
27
26
  @media screen and (max-width: 768px)
28
27
  .post-TianliGPT
@@ -30,7 +29,6 @@
30
29
 
31
30
  .tianliGPT-title
32
31
  display: flex
33
- color: var(--theme-link)
34
32
  border-radius: 8px
35
33
  align-items: center
36
34
  padding: 0 12px
@@ -46,7 +44,7 @@
46
44
  margin-top: 12px
47
45
  padding: 8px 12px
48
46
  background: var(--card)
49
- border-radius: 8px
47
+ border-radius: $border-block
50
48
  border: var(--style-border-always)
51
49
  font-size: 15px
52
50
  line-height: 1.4
@@ -71,15 +69,15 @@
71
69
  transition: 0.3s
72
70
 
73
71
  .tianliGPT-suggestions .tianliGPT-suggestions-item:hover
74
- background: var(--heo-main)
72
+ background: $color-theme
75
73
  color: var(--text-p0)
76
74
 
77
75
  .blinking-cursor
78
- background-color: var(--heo-main)
76
+ background-color: var(--text-p2)
79
77
  width: 10px
80
- height: 16px
78
+ height: 10px
81
79
  display: inline-block
82
- vertical-align: middle
80
+ border-radius: 50%;
83
81
  animation: blinking-cursor 0.5s infinite
84
82
  -webkit-animation: blinking-cursor 0.5s infinite
85
83
  margin-left: 4px
@@ -102,7 +100,7 @@
102
100
 
103
101
  .tianliGPT-tag
104
102
  font-size: 12px
105
- background-color: var(--theme-link)
103
+ background-color: var(--text-p2)
106
104
  color: var(--card)
107
105
  font-weight: bold
108
106
  border-radius: 4px
@@ -116,7 +114,7 @@
116
114
  transition: 0.3s
117
115
 
118
116
  .tianliGPT-tag:hover
119
- background: var(--text-p2)
117
+ background: $color-theme
120
118
  color: var(--card)
121
119
 
122
120
  ins.adsbygoogle
@@ -149,7 +147,7 @@ ins.adsbygoogle
149
147
  .tianliGPT-title-icon svg
150
148
  width: 20px
151
149
  height: 20px
152
- fill: var(--heo-main)
150
+ fill: var(--text-p2)
153
151
 
154
152
  .tianliGPT-title-icon svg path
155
- fill: var(--heo-main)
153
+ fill: var(--text-p2)
package/source/js/main.js CHANGED
@@ -197,13 +197,16 @@ init.registerTabsTag()
197
197
  // scrollreveal
198
198
  if (stellar.plugins.scrollreveal) {
199
199
  stellar.loadScript(stellar.plugins.scrollreveal.js).then(function () {
200
- ScrollReveal().reveal("body .reveal", {
200
+ const slideUp = {
201
201
  distance: stellar.plugins.scrollreveal.distance,
202
202
  duration: stellar.plugins.scrollreveal.duration,
203
203
  interval: stellar.plugins.scrollreveal.interval,
204
204
  scale: stellar.plugins.scrollreveal.scale,
205
+ opacity: 0,
205
206
  easing: "ease-out"
206
- });
207
+ }
208
+ ScrollReveal().reveal('.l_left .slide-up', slideUp)
209
+ ScrollReveal().reveal('.l_main .slide-up', slideUp)
207
210
  })
208
211
  }
209
212
 
@@ -3,7 +3,7 @@ codeElementArr.forEach(code => {
3
3
  // copy btn
4
4
  const codeCopyBtn = document.createElement('div')
5
5
  codeCopyBtn.classList.add('copy-btn')
6
- codeCopyBtn.innerText = stellar.plugins.copycode.default_text
6
+ codeCopyBtn.innerHTML = stellar.plugins.copycode.default_text
7
7
 
8
8
  code.appendChild(codeCopyBtn)
9
9
 
@@ -11,11 +11,11 @@ codeElementArr.forEach(code => {
11
11
  const currentCodeElement = code.children[0]?.innerText
12
12
  await copyCode(currentCodeElement)
13
13
 
14
- codeCopyBtn.innerText = stellar.plugins.copycode.success_text
14
+ codeCopyBtn.innerHTML = stellar.plugins.copycode.success_text
15
15
  codeCopyBtn.classList.add('success')
16
16
  hud.toast(stellar.plugins.copycode.toast, 2500)
17
17
  setTimeout(() => {
18
- codeCopyBtn.innerText = stellar.plugins.copycode.default_text
18
+ codeCopyBtn.innerHTML = stellar.plugins.copycode.default_text
19
19
  codeCopyBtn.classList.remove('success')
20
20
  },3000)
21
21
  })
@@ -1,3 +0,0 @@
1
- <% if (page.header != 'auto' && page.header != false) { %>
2
- <%- partial('../../sidebar/header', {where: 'main'}) %>
3
- <% } %>