Skip to content

Commit

Permalink
feat: update @nuxt/content version
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosirera committed Jul 1, 2020
1 parent 3e1c476 commit 91088b6
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 41 deletions.
File renamed without changes.
71 changes: 33 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@fortawesome/free-solid-svg-icons": "^5.13.1",
"@nuxt/components": "^1.0.6",
"@nuxt/content": "^1.3.2",
"@nuxt/content": "^1.4.0",
"@nuxtjs/pwa": "^3.0.0-beta.20",
"nuxt": "^2.13.0",
"nuxt-fontawesome": "^0.4.0",
Expand Down
7 changes: 5 additions & 2 deletions pages/blog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</template>

<script>
import BlogCard from '@/components/ui/BlogCard'
import BlogCard from '@/components/blog/BlogCard'
export default {
scrollToTip: true,
Expand All @@ -22,7 +22,10 @@ export default {
BlogCard,
},
async asyncData({ $content }) {
const posts = await $content('blog').sortBy('date', 'desc').fetch()
const posts = await $content('blog')
.without(['body', 'toc'])
.sortBy('date', 'desc')
.fetch()
return { posts }
},
methods: {
Expand Down

0 comments on commit 91088b6

Please sign in to comment.