11# Getting Started
22
33::: tip
4- This section is a step-by-step tutorial with some concepts, and we recommend that you read it completely before using
4+ This section is a step-by-step tutorial with some concepts, and we recommend that you read it completely before using
55this plugin.
66:::
77
@@ -24,8 +24,8 @@ Suppose you have the following files structure:
2424
2525``` vue
2626.
27- └── _posts
28- ├── 2018-4-4-intro-to-vuepress.md
27+ └── _posts
28+ ├── 2018-4-4-intro-to-vuepress.md
2929 └── 2019-6-8-intro-to-vuepress-next.md
3030```
3131
@@ -247,7 +247,9 @@ module.exports = {
247247 // Path of the `entry page` (or `list page`)
248248 path: ' /tag/' ,
249249 // Layout of the `entry page`
250- layout: ' Tag' ,
250+ layout: ' Tags' ,
251+ // Layout of the `scope page`
252+ scopeLayout: ' Tag'
251253 },
252254 ],
253255 },
@@ -261,13 +263,13 @@ the corresponding layout:
261263
262264| url | layout |
263265| ----------- | ---------------------------------- |
264- | ` /tag/ ` | ` Tag ` (fallback to ` FrontmatterKey ` if not exist) |
265- | ` /tag/vue/ ` | ` FrontmatterPagination ` (fallback to ` Layout ` if not exist) |
266- | ` /tag/js/ ` | ` FrontmatterPagination ` (fallback to ` Layout ` if not exist) |
266+ | ` /tag/ ` | ` Tags ` (fallback to ` FrontmatterKey ` if not exist) |
267+ | ` /tag/vue/ ` | ` Tag ` (fallback to ` FrontmatterPagination ` if not exist) |
268+ | ` /tag/js/ ` | ` Tag ` (fallback to ` FrontmatterPagination ` if not exist) |
267269
268- In the ` <Tag /> ` component, you can use [ this.$frontmatterKey.list] ( ../client-api/README.md#frontmatterkey ) to get the
269- tag
270- list. The value
270+ In the ` <Tags /> ` component, you can use [ this.$frontmatterKey.list] ( ../client-api/README.md#frontmatterkey ) to get the
271+ tag
272+ list. The value
271273would be like:
272274
273275``` json
@@ -290,7 +292,7 @@ would be like:
290292]
291293```
292294
293- In the ` FrontmatterPagination ` component, you can use
295+ In the ` FrontmatterPagination ` component, you can use
294296[ this.$pagination.pages] ( ../client-api/README.md#pagination ) to get the matched pages in current tag
295297classification:
296298
@@ -318,7 +320,7 @@ classification:
318320
319321## Writing a blog theme
320322
321- If everything is ok, you can start to write a blog theme. Actually, there are only 2 necessary layout components to
323+ If everything is ok, you can start to write a blog theme. Actually, there are only 2 necessary layout components to
322324create a blog theme:
323325
324326- Layout
@@ -329,4 +331,3 @@ Here are two official examples (A simple & a complex) for you:
329331
330332- [ 70-lines-of-vuepress-blog-theme] ( https://github.com/ulivz/70-lines-of-vuepress-blog-theme ) : A VuePress Blog Theme implemented in around 70 lines.
331333- [ @vuepress/theme-blog ] ( https://github.com/ulivz/vuepress-theme-blog ) : Default blog theme for VuePress.
332-
0 commit comments