An opinionated starter template for a quick start with the following technologies up on a site after only 5 minutes!
Use the deploy button to get your own copy of the repository.
This will setup everything needed for running the CMS:
Once the initial build finishes, you can invite yourself as a user. Go to the Identity tab in your new site, click “Invite” and send yourself an invite. Start with by registering a regular email-account (not OAuth yet!) with a generated password.
You should be up and running, ready for personalization!
This way it doesn’t clutter up your repo with large unmanageable files. But do know that it is easier to add later than undoing it later.
Install git-lfs on your computer and remove the #
in the project’s .gitattributes
Setup Netlify LM by following these steps. (In short: netlify plugins:install netlify-lm-plugin
→ netlify lm:install
→ netlify login
→ netlify link
→ netlify lm:setup
→ commit the .lfsconfig
file.)
npm install
localhost:3000
.npm run dev
npm run build
# And to serve that deployment...
npm run start
npm run generate
Copy and change the .env-file
cp .env-example .env
Change the value on these lines
static/admin/config.yml:1
— site_url
static/admin/config.yml:2
— logo_url
assets/content/site/info.json
— sitename
, sitedescription
& sitelang
package.json:1
— name
, description
, author
& repository.url
pages/index.vue
— The start page of your new website!Change colors, favicon, content & content collections
assets/scss/_vars.scss
& tailwind.config.js
static/icon.png
to something new, and then match the new filename and source in nuxt.config.js
under pwa.icon
/admin
or by hand in assets/content
static/admin/config.yml
, then added to vuex store in store/index.js
Change font
nuxt.config.js
under head.link
. You can add a <link rel="stylesheet" href="font.css">
as link: [{ rel: 'stylesheet', href: 'font.css' }]
, like thistailwind.config.js
under theme.extend.fontFamily.sans
(or other). Like sans: ['Europa', ...defaultTheme.fontFamily.sans]
This project was bootstrapped with
create-nuxt-app
. There are more detailed explanations of how everything works in the Nuxt.js docs.
Make sure to set to “registration invite only” here if you don’t want spam.
When you create your first account, don’t sign up using OAuth, generate a new password and sign in that way locally, otherwise a successful login will send you to the URL you typed in instead of keeping you on localhost.
Originally based on Henry Desroches’ nuxt-netlify-cms-starter.
Deployed easily with their boilerplate via:
I added a CSS class, but it doesn’t show
purgeCSS
in nuxt.config.js
I tried logging into/saving in Netlify CMS, but I can’t
This repository is configured for Git LFS but ‘git-lfs’ was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/pre-push.
git lfs install
in project rootI can’t get Git LFS to run correctly on Netlify
GIT_LFS_ENABLED
: true
. Then also make sure that Netlify LM is setup as their docs specify.Author: PH4NTOMiki
Demo: https://ntn-boilerplate.netlify.app/
Source Code: https://github.com/PH4NTOMiki/nuxtjs-cms-starter
#nuxt #vue #vuejs #nuxtjs