File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ You can also specify the config file via `--config` option of [CLI](./cli.md).
93
93
- Details:
94
94
95
95
Extra tags to inject into the ` <head> ` tag in the rendered HTML.
96
-
96
+
97
97
You can specify each tag in the form of ` [tagName, { attrName: attrValue }, innerHTML?] ` .
98
98
99
99
This can be specified in different locales.
@@ -104,13 +104,11 @@ You can also specify the config file via `--config` option of [CLI](./cli.md).
104
104
105
105
``` js
106
106
module .exports = {
107
- head: [
108
- [' link' , { rel: ' icon' , href: ' /logo.png' }]
109
- ]
107
+ head: [[' link' , { rel: ' icon' , href: ' /logo.png' }]],
110
108
}
111
109
```
112
110
113
- Rendered as:
111
+ Rendered as:
114
112
115
113
``` html
116
114
<head >
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ VuePress 配置的参考文档,可以通过配置文件来设置这些配置
92
92
- 详情:
93
93
94
94
在最终渲染出的 HTML 的 ` <head> ` 标签内加入的额外标签。
95
-
95
+
96
96
你可以通过 ` [tagName, { attrName: attrValue }, innerHTML?] ` 的格式来添加标签。
97
97
98
98
它可以设置在不同语言的 locales 中。
@@ -103,13 +103,11 @@ VuePress 配置的参考文档,可以通过配置文件来设置这些配置
103
103
104
104
``` js
105
105
module .exports = {
106
- head: [
107
- [' link' , { rel: ' icon' , href: ' /logo.png' }]
108
- ]
106
+ head: [[' link' , { rel: ' icon' , href: ' /logo.png' }]],
109
107
}
110
108
```
111
109
112
- 渲染为:
110
+ 渲染为:
113
111
114
112
``` html
115
113
<head >
@@ -550,7 +548,7 @@ module.exports = {
550
548
551
549
- 详情:
552
550
553
- 一个函数,用来控制哪些文件是需要生成对应的 ` <link rel="preload"> ` 标签的。设置为 ` true ` 或者 ` false ` 来完全启用或禁用它。
551
+ 一个函数,用来控制哪些文件是需要生成对应的 ` <link rel="preload"> ` 标签的。设置为 ` true ` 或者 ` false ` 来完全启用或禁用它。
554
552
555
553
默认情况下,只有当前页面所需的文件会被预加载。所以在绝大部分情况下,你只需要使用 ` true ` 就可以了。
556
554
@@ -562,7 +560,7 @@ module.exports = {
562
560
563
561
- 详情:
564
562
565
- 一个函数,用来控制哪些文件是需要生成对应的 ` <link rel="prefetch"> ` 标签的。设置为 ` true ` 或者 ` false ` 来完全启用或禁用它。
563
+ 一个函数,用来控制哪些文件是需要生成对应的 ` <link rel="prefetch"> ` 标签的。设置为 ` true ` 或者 ` false ` 来完全启用或禁用它。
566
564
567
565
如果你将它设置为 ` true ` ,所有其它页面所需的文件都会被预拉取。这对于小型站点来说是十分有帮助的,因为它会大大提升页面切换的速度。但是在你的网站有很多页面时不建议你这么做。
568
566
You can’t perform that action at this time.
0 commit comments