Gridsome is a Vue.js-powered, modern site generator for building the fastest possible websites for any Headless CMS, APIs or Markdown-files. Gridsome makes it easy and fun for developers to create fast, beautiful websites without needing to become a performance expert.
Learn more about how Gridsome works
<template>
<Layout>
<div class="container-inner mx-auto my-16">
<h1 class="text-4xl font-bold leading-tight">{{ $page.post.title }}</h1>
<div class="text-xl text-gray-600 mb-8">{{ $page.post.date }}</div>
<div class="markdown-body" v-html="$page.post.content" />
</div>
</Layout>
</template>
You should have basic knowledge about HTML, CSS, Vue.js and how to use the Terminal. Knowing how Vue Single File components & GraphQL works is a plus, but not required. Gridsome is a great way to learn both.
Gridsome requires Node.js and recommends Yarn. How to setup
Using yarn:
yarn global add @gridsome/cli
Using npm:
npm install --global @gridsome/cli
gridsome create my-gridsome-site
to create a new project cd my-gridsome-site
to open foldergridsome develop
to start local dev server at http://localhost:8080
.vue
components in the /pages
directory to create page routes.gridsome build
to generate static files in a /dist
folder