All Projects → medfreeman → Nuxt Netlify Cms Module

medfreeman / Nuxt Netlify Cms Module

Licence: mit
Easy Netlify CMS integration with nuxt.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Nuxt Netlify Cms Module

nuxt-modules
AX2's Nuxt modules
Stars: ✭ 30 (-84.62%)
Mutual labels:  module, nuxt, nuxtjs
Nuxt Client Init Module
Provide client version of nuxtServerInit
Stars: ✭ 176 (-9.74%)
Mutual labels:  nuxt, nuxtjs, module
Gtm Module
Google Tag Manager Module for Nuxt.js
Stars: ✭ 187 (-4.1%)
Mutual labels:  nuxt, nuxtjs, module
nuxt-ts-module
A tiny module to use Typescript within Nuxt.js application.
Stars: ✭ 21 (-89.23%)
Mutual labels:  module, nuxt, nuxtjs
Web Vitals Module
Web Vitals: Essential module for a healthy Nuxt.js
Stars: ✭ 138 (-29.23%)
Mutual labels:  nuxtjs, module
Bael Template
Brutalist Blog theme for Netlify CMS
Stars: ✭ 187 (-4.1%)
Mutual labels:  nuxt, nuxtjs
Nuxt Sass Resources Loader
SASS resources (e.g. variables, mixins etc.) module for NuxtJs
Stars: ✭ 191 (-2.05%)
Mutual labels:  nuxt, module
Bootstrap Vue
BootstrapVue provides one of the most comprehensive implementations of Bootstrap v4 for Vue.js. With extensive and automated WAI-ARIA accessibility markup.
Stars: ✭ 13,603 (+6875.9%)
Mutual labels:  nuxt, nuxtjs
Surmon.me
🆒 My personal website and blog, powered by @vuejs (3)
Stars: ✭ 1,767 (+806.15%)
Mutual labels:  nuxt, nuxtjs
Nuxt Payload Extractor
Nuxt.js module that makes `nuxt generate` command to store html and payload separately.
Stars: ✭ 140 (-28.21%)
Mutual labels:  nuxt, nuxtjs
Moment Module
Efficient Moment.js integration for Nuxt
Stars: ✭ 164 (-15.9%)
Mutual labels:  nuxt, module
Nuxt Imagemin
Nuxt module to minify your images. Works with: png, jpeg, gif, and svg
Stars: ✭ 170 (-12.82%)
Mutual labels:  nuxt, nuxtjs
Python Module
Write Nuxt.js applications using Python! [Experimental]
Stars: ✭ 181 (-7.18%)
Mutual labels:  nuxt, nuxtjs
Nuxpress
A Nuxt-based blogging engine and boilerplate
Stars: ✭ 135 (-30.77%)
Mutual labels:  nuxt, nuxtjs
Press
Minimalist Markdown Publishing for Nuxt.js
Stars: ✭ 181 (-7.18%)
Mutual labels:  nuxt, nuxtjs
Nuxt Image Loader Module
An image loader module for nuxt.js that allows you to configure image style derivatives.
Stars: ✭ 135 (-30.77%)
Mutual labels:  nuxt, module
Vue Soundcloud
🎧 A SoundCloud client built with Vue and Nuxt
Stars: ✭ 141 (-27.69%)
Mutual labels:  nuxt, nuxtjs
Feed Module
Everyone deserves RSS, ATOM and JSON feeds!
Stars: ✭ 182 (-6.67%)
Mutual labels:  nuxt, nuxtjs
Jellyfin Vue
A modern web client for Jellyfin based on Vue.
Stars: ✭ 129 (-33.85%)
Mutual labels:  nuxt, nuxtjs
Blog Module
Build your blog with @nuxt
Stars: ✭ 130 (-33.33%)
Mutual labels:  nuxt, nuxtjs

nuxt-netlify-cms-module

npm version npm circleci Codecov Greenkeeper badge Dependencies devDependencies

styled with prettier

Easy Netlify CMS integration with nuxt.js

📖 Release Notes

Features

Setup

  • Add nuxt-netlify-cms and netlify-cms devDependencies using yarn or npm to your project

    npm i -D nuxt-netlify-cms netlify-cms OR yarn add -D nuxt-netlify-cms netlify-cms

  • Add nuxt-netlify-cms to modules section of nuxt.config.js

{
  modules: [
    // Simple usage
    "nuxt-netlify-cms",

    // With options
    ["nuxt-netlify-cms", { adminPath: "secure" }],
  ],

  // You can optionally use global options instead of inline form
  netlifyCms: {
    adminPath: "secure"
  }
}

Usage

Netlify CMS module config folder

This module will look for the Netlify CMS config file and extensions in the following folder: [nuxt.js srcDir]/netlify-cms.

ℹ️ The nuxt.js srcDir is set to the project root folder by default. If you don't change this value in nuxt config, you'll just have to create the "netlify-cms" directory at your project root folder.

ℹ️ If you don't use any of the following two features, there's no need to create this folder. But since netlify-cms needs a configuration specific to your repository, you'll have to specify it through options.

Netlify CMS config.yml

You can specify a custom configuration, that will be parsed and merged with the module's netlify CMS options.

You have to place the file in your Netlify CMS module config folder and name it config.yml.

ℹ️ Note that each path in the file (media_folder, collections folder fields and collections file fields) will be rewritten to prepend nuxt.js srcDir, so please specify each path relative to this folder.

This file can be changed while nuxt dev is running, and Netlify CMS will be updated automatically.

Netlify CMS customizations

This module will look for Netlify CMS customizations in *.js files contained in Netlify CMS module config folder and subfolders, and include them in the CMS build.

These are of two kinds, Custom Previews and Custom Widgets.

ℹ️ The global variable CMS is available to these javascript files to reference the CMS object.

ℹ️ The contents of this directory and subdirectories can be changed while nuxt dev is running, and Netlify CMS will be updated automatically.

Options

You can pass options using module options or netlifyCms section in nuxt.config.js.

adminPath

  • Default: "admin"

adminPath defines the path where Netlify CMS will be served.

With nuxt default configuration, it will be served to http://localhost:3000/admin/ in development.

adminTitle

  • Default: "Content Manager"

adminTitle defines the html title of the page where Netlify CMS will be served.

cmsConfig

  • Default: { media_folder: "static/uploads" }

cmsConfig wholly reflects Netlify CMS config.yml, in js object format.

ℹ️ The order of precedence for the cms configuration is defaults < netlify-cms.yml < module options

ℹ️ The paths are also rewritten according to nuxt.js srcDir

CONTRIBUTING

  • ⇄ Pull requests and ★ Stars are always welcome.
  • For bugs and feature requests, please create an issue.
  • Pull requests must be accompanied by passing automated tests ($ yarn test).

License

MIT License

Copyright (c) Mehdi Lahlou [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].