-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Update serverless-blog.md (typo) #1499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } | ||
| } | ||
| </script> | ||
| Display the result |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The text "Display the result" seems meaningless so I removed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
| Then create `components/BlogHome.vue` which will be your blog homepage that lists your most recent posts. | ||
|
|
||
| ```javascript | ||
| ```html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code snippet seems should be used with Vue syntax, not JavaScript. And as the vue syntax is not supported in Hexo, so I changed it into html as a downgrade syntax.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, interesting
| page: 1, | ||
| page_size: 10 | ||
| }).then((res) => { | ||
| // console.log(res.data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary because it has a real job to do below, so removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea.
src/v2/cookbook/serverless-blog.md
Outdated
| order: 5 | ||
| --- | ||
|
|
||
| # Create a CMS-Powered Blog Using Vue.js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicated with the title in the metadata. So removed.
src/v2/cookbook/serverless-blog.md
Outdated
| <div id="blog-home"> | ||
| <h1>{{ page_title }}</h1> | ||
| <!-- Create v-for and apply a key for Vue. Example is using a combination of the slug and index --> | ||
| <!-- Create `v-for` and apply a `key` for Vue. Here is using a combination of the slug and index. --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Here is using" isn't grammatically correct. It should either be "This example is..." or "Here we are using"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done for this. 👌
| One thing to note when using routes with params is that when the user navigates from `/blog/foo` to `/blog/bar`, the same component instance will be reused. Since both routes render the same component, this is more efficient than destroying the old instance and then creating a new one. | ||
|
|
||
| <p class="tip">Be aware, that using the component this way will mean that the lifecycle hooks of the component will not be called. Visit the Vue.js docs to learn more about [Dynamic Route Matching](https://router.vuejs.org/en/essentials/dynamic-matching.html)</p> | ||
| <p class="tip">Be aware, that using the component this way will mean that the lifecycle hooks of the component will not be called. Visit the Vue Router's docs to learn more about [Dynamic Route Matching](https://router.vuejs.org/en/essentials/dynamic-matching.html)</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
|
There's only one change needed, otherwise, all great changes, thank you! |
|
Perfect, thanks! |
No description provided.