Skip to content

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

Merged
merged 3 commits into from
Mar 19, 2018
Merged

Update serverless-blog.md (typo) #1499

merged 3 commits into from
Mar 19, 2018

Conversation

Jinjiang
Copy link
Member

No description provided.

@Jinjiang Jinjiang requested a review from sdras March 19, 2018 06:31
@@ -115,18 +115,17 @@ Then create `components/BlogHome.vue` which will be your blog homepage that list
}
}
</script>
Display the result
Copy link
Member Author

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.

Copy link
Member

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
Copy link
Member Author

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.

Copy link
Member

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)
Copy link
Member Author

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.

Copy link
Member

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
Copy link
Member Author

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.


<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. -->
Copy link
Member

@sdras sdras Mar 19, 2018

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"

Copy link
Member Author

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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@sdras
Copy link
Member

sdras commented Mar 19, 2018

There's only one change needed, otherwise, all great changes, thank you!

@sdras
Copy link
Member

sdras commented Mar 19, 2018

Perfect, thanks!

@sdras sdras merged commit 89bd092 into vuejs:master Mar 19, 2018
@Jinjiang Jinjiang deleted the typo branch March 19, 2018 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants