-
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
@@ -115,18 +115,17 @@ Then create `components/BlogHome.vue` which will be your blog homepage that list | |||
} | |||
} | |||
</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
@@ -88,7 +89,7 @@ export default new Router({ | |||
|
|||
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
@@ -105,7 +106,6 @@ Then create `components/BlogHome.vue` which will be your blog homepage that list | |||
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.
@@ -4,8 +4,6 @@ type: cookbook | |||
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
|
||
<template> | ||
<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. 👌
|
||
<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.