
Nuxt.js Blog Engine
You've got better things to do than build another blog
Add Butter to your Nuxt.js app and get back to more interesting problems
"Best CMS on the market"

ButterCMS is an API-based CMS that integrates with Nuxt.js in minutes. Use ButterCMS with Nuxt.js to build CMS-powered apps quickly. Butter is great for blogs, dynamic pages, and more.
Above is quick video of integrating Butter's blog engine into an application.

Butter's Blog API slides right into our apps and helps avoid having yet another WordPress site.
Daniel, Founder of Collective IdeaAll your requirements, solved
Use main domain (for SEO)
Friendly admin interface
Upload images and media
Edit slugs and meta tags
Tag and categorize posts
RSS/Atom Feeds
Search
Webhooks
Powerful admin interface

Integrates with Nuxt.js
Our blog engine has a simple API and drop-in Nuxt.js SDK.
Save development time
Save thousands of dollars worth of development time with our easy setup.
Gives you great SEO
Host your blog on your main domain and customize slugs and meta tags.
Try ButterCMS in your Nuxt.js appSetup in minutes
Integrating Butter into your Nuxt.js app is dead simple. Here's a mini tutorial to get a feel for of setting up your blog home and blog post pages. For full an integration guide check out our Official Nuxt.js Guide
To display posts we create a simple /blog route in our app and fetch blog posts from the Butter API. See our API reference for additional options such as filtering by category or author. The response also includes some metadata we'll use for pagination.
To retrieve the blog posts using ButterCMS client, you can use the function butter.post.list({})
pages/blog/index.vue
import { butter } from '~/plugins/buttercms'
export default {
name: 'blog-home',
data() {
return {
page_title: 'Blog',
posts: []
}
},
methods: {
getPosts() {
butter.post
.list({
page: 1,
page_size: 10
})
.then((res) => {
// console.log(res.data)
this.posts = res.data.data
})
}
},
created() {
this.getPosts()
}
}
Display the result
<template>
<div id="blog-home">
<h1>{{ page_title }}</h1>
<div v-for="(post,index) in posts" :key="post.slug + '_' + index">
<router-link :to="'/blog/' + post.slug">
<article class="media">
<figure>
<img v-if="post.featured_image" :src="post.featured_image" alt="" />
<img v-else src="http://via.placeholder.com/250x250" alt="" />
</figure>
<h2>{{ post.title }}</h2>
<p>{{ post.summary }}</p>
</article>
</router-link>
</div>
</div>
</template>
To display a complete post, you can use the butter.post.retrieve(<url>)
method. See a full list of available post properties in our API reference.
pages/blog/_slug.vue
import { butter } from '~/plugins/buttercms'
export default {
name: 'blog-post',
data() {
return {
post: {
data: {
author: {}
},
meta: {}
}
}
},
methods: {
getPost() {
butter.post
.retrieve(this.$route.params.slug)
.then((res) => {
console.log(res.data)
this.post = res.data
})
.catch((res) => {
console.log(res)
})
}
},
watch: {
$route(to, from) {
this.getPost()
}
},
created() {
this.getPost()
}
}
Display the result
<template>
<div id="blog-post">
<h1>{{ post.data.title }}</h1>
<h4>{{ post.data.author.first_name }} {{ post.data.author.last_name }}</h4>
<div v-html="post.data.body"></div>
<router-link
v-if="post.meta.previous_post"
:to="/blog/ + post.meta.previous_post.slug"
class="button"
>
{{ post.meta.previous_post.title }}
</router-link>
<router-link
v-if="post.meta.next_post"
:to="/blog/ + post.meta.next_post.slug"
class="button"
>
{{ post.meta.next_post.title }}
</router-link>
</div>
</template>
About ButterCMS
ButterCMS is an API-based, or "headless", CMS. We're a hosted service and we maintain all of the infrastructure. For more information on how we compare to a traditional CMS check out API-based CMS vs Traditional CMS.
How do you compare to Wordpress?
In short, we offer all the same easy-to-use editing capabilities of Wordpress but are significantly easier for developers to setup and maintain. This means you spend less time working on your CMS and more time focusing on things important to your business.
Learn more about how we're a wordpress alternative.
What's my blog going to look like?
Unlike CMS's you might be used to, we don't control or host any of your templates. The design of your blog (HTML + CSS) lives in your application along side the rest of your app. Your application calls our Blog Engine API to get the raw blog post content and then injects it into your own templates during rendering. This has many benefits including blog your instantly matching the rest of your site branding giving it a unique feel; not the cookie-cutter blog themes you'll experience with other CMS's.
Can I import my existing blog content?
Yep. To import content from another platform, simply send us an email.
What kind of database can I use?
No database required! We're a SaaS CMS or CaaS. You simply call our Content API from your app. We host and maintain all of the CMS infrastructure.
Can I host this?
No, we're a SaaS CMS or CaaS. You simply call our Content API from your app. We host and maintain all of the CMS infrastructure.
I have other questions
We're happy to help.
Chat with usAbout Nuxt.js
Nuxt is a progressive framework based on Vue.js to create modern web applications.