Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netlify CMSを導入しました #3

Merged
merged 2 commits into from May 22, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -22,6 +22,12 @@ module.exports = {
}
}
},
{
use: `gridsome-plugin-netlify-cms`,
options: {
publicPath: `/admin`
}
},
],

transformers: {
@@ -9,7 +9,9 @@
"dependencies": {
"@gridsome/source-filesystem": "0.5.0",
"@gridsome/transformer-remark": "0.3.2",
"gridsome": "^0.6.0"
"gridsome": "^0.6.0",
"gridsome-plugin-netlify-cms": "1.0.6",
"netlify-cms": "2.9.1"
},
"devDependencies": {
"@fullhuman/postcss-purgecss": "1.2.0",
@@ -0,0 +1,18 @@
backend:
name: github
repo: pensuke81/gridsome-blog

media_folder: "static/uploads"
public_folder: "/uploads"

collections:
- name: "posts"
label: "Posts"
folder: "content/posts"
create: true
slug: "{{slug}}"
fields:
- {label: "タイトル", name: "title", widget: "string"}
- {label: "概要", name: "description", widget: "string"}
- {label: "公開日", name: "date", widget: "date"}
- {label: "内容", name: "body", widget: "markdown"}
@@ -0,0 +1,11 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Netlify CMS</title>
</head>
<body>
<script src="index.js" type="module"></script>
</body>
</html>
@@ -0,0 +1 @@
import CMS from "netlify-cms"
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.