Uses Vue-Remark which allows to use components in Markdown (like MDX).
Heavily inspired from Lauragift's minimal blog template.
It thrives to provide a complete base to build decent applications easily, while making opting out of features easy-ish.
Additionally, the following niceties are included:
- Templates things:
- Styles & Themes:
- Uses the Stylish font (edit
src/config/style
to remove). - Ready to use icons with vue-font-awesome. Just use
<fa-icon i="spinner"/>
(or<fa-icon i="github" size="lg"/>
). Add/remove the icons you want insrc/components/fontAwesome.js
.
- Uses the Stylish font (edit
- Pipeline things:
- Generates a sitemap and an RSS feed automatically, which does transform Markdown to HTML (both gridsome-plugin-rss and gridsome-plugin-feed don't by default).
- Can load SVGs as Vue components.
- Favicon automatically generated from SVG Logo (in
static/logo.svg
). - Auto-registers all components in the
components
directory. This is probably not suitable for ambitious projects, where magic is not desirable. Remove it by removingsrc/config/autoLoadComponents
.
- Markdown Handling:
npm install --global @gridsome/cli
gridsome create my-gridsome-site https://github.com/gridsome/gridsome-starter-blog.git
cd my-gridsome-site
to open folderyarn start
to start local dev server at https://localhost:8080- Happy coding 🎉🙌
once you're used to how things work, run yarn remove-readmes
to get rid of all those README files in subfolders all at once.
If you'd like, run yarn clean
to remove all Gridsome caches
If you don't want to get too much into details, content/data.yml
has all the common options you might need.
to cater for Netlify & co, images that are in static/images
will be automatically picked up in markdown files, both in the frontmatter, and in image tags.
If you'd like to change the directory, you should change the references to it in both gridsome.server.js
and ./gridsome/remarkPlugins.js
- on Gitlab (if you don't want it, remove
gitlab-ci.yml
) - on Netlify & Netlify CMS (if you don't want it, remove
netlify.toml
andstatic/admin
)
Use this deploy button to get your own copy of the repository.