hexo-theme-volantis 5.7.10 → 5.8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.8.0](https://github.com/volantis-x/hexo-theme-volantis/compare/5.7.10...5.8.0) (2023-05-06)
4
+
5
+
6
+ ### Features
7
+
8
+ * **head and body template:** 支持在front-matter中动态插入css和js,支持引入多个 ([#883](https://github.com/volantis-x/hexo-theme-volantis/issues/883)) ([3146360](https://github.com/volantis-x/hexo-theme-volantis/commit/3146360ecf3955314768fde46226632bf86b4e45))
9
+
3
10
  ## [5.7.10](https://github.com/volantis-x/hexo-theme-volantis/compare/5.7.9...5.7.10) (2023-04-28)
4
11
 
5
12
 
@@ -34,6 +34,13 @@
34
34
  <!-- Custom Files headBegin begin-->
35
35
  <%- volantis_inject('headBegin') %>
36
36
  <!-- Custom Files headBegin end-->
37
+ <!-- front-matter head_begin begin -->
38
+ <%_ if (page.import && page.import.head_begin){ _%>
39
+ <%_ getList(page.import.head_begin).forEach(function(item){ _%>
40
+ <%- item %>
41
+ <%_ }) _%>
42
+ <%_ } _%>
43
+ <!-- front-matter head_begin end -->
37
44
  <%_ if (config.favicon) { _%>
38
45
  <link rel="shortcut icon" type='image/x-icon' href="<%- url_for(config.favicon) %>">
39
46
  <%_ } _%>
@@ -76,4 +83,11 @@
76
83
  <!-- Custom Files headEnd begin-->
77
84
  <%- volantis_inject('headEnd') %>
78
85
  <!-- Custom Files headEnd end-->
86
+ <!-- front-matter head_end begin -->
87
+ <%_ if (page.import && page.import.head_end){ _%>
88
+ <%_ getList(page.import.head_end).forEach(function(item){ _%>
89
+ <%- item %>
90
+ <%_ }) _%>
91
+ <%_ } _%>
92
+ <!-- front-matter head_end end -->
79
93
  </head>
package/layout/layout.ejs CHANGED
@@ -13,6 +13,13 @@
13
13
  <!-- Custom Files bodyBegin begin-->
14
14
  <%- volantis_inject('bodyBegin') %>
15
15
  <!-- Custom Files bodyBegin end-->
16
+ <!-- front-matter body_begin begin -->
17
+ <%_ if (page.import && page.import.body_begin){ _%>
18
+ <%_ getList(page.import.body_begin).forEach(function(item){ _%>
19
+ <%- item %>
20
+ <%_ }) _%>
21
+ <%_ } _%>
22
+ <!-- front-matter body_begin end -->
16
23
  <%- partial('_partial/header', null, {cache: false, path: path}) %>
17
24
  <div id="l_body">
18
25
  <%- partial('_partial/cover') %>
@@ -41,5 +48,12 @@
41
48
  <!-- Custom Files bodyEnd begin-->
42
49
  <%- volantis_inject('bodyEnd') %>
43
50
  <!-- Custom Files bodyEnd end-->
51
+ <!-- front-matter body_end begin -->
52
+ <%_ if (page.import && page.import.body_end){ _%>
53
+ <%_ getList(page.import.body_end).forEach(function(item){ _%>
54
+ <%- item %>
55
+ <%_ }) _%>
56
+ <%_ } _%>
57
+ <!-- front-matter body_end end -->
44
58
  </body>
45
59
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-volantis",
3
- "version": "5.7.10",
3
+ "version": "5.8.0",
4
4
  "description": "Elegant and powerful theme for Hexo.",
5
5
  "main": "package.json",
6
6
  "scripts": {