aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Calavera <david.calavera@gmail.com>2017-06-06 12:30:43 -0700
committerGitHub <noreply@github.com>2017-06-06 12:30:43 -0700
commit9f94535e5a9e5c5f5629b2e9287872cb186db710 (patch)
tree4c9e0370012326447feac5022c995aa01f9e1c3e
parent37e5f955764380bfb19bcfc5afc0966e431f14c7 (diff)
parenteb6afb01860008fb5fdfef9a1c55ac1ffc531025 (diff)
Merge pull request #10 from erquhart/cms-styles
pull cms styles from npm
-rw-r--r--gulpfile.babel.js3
-rw-r--r--package.json2
-rw-r--r--src/cms/index.html2
3 files changed, 5 insertions, 2 deletions
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
index 6681944..ce9e001 100644
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -30,6 +30,9 @@ gulp.task("cms", () => {
.pipe(replace("<% GITHUB_REPOSITORY %>", repo))
.pipe(gulp.dest("./dist/admin"))
.pipe(browserSync.stream());
+ gulp.src(["./node_modules/netlify-cms/dist/*.*", "!./node_modules/netlify-cms/dist/*.html"])
+ .pipe(gulp.dest("./dist"))
+ .pipe(browserSync.stream())
});
gulp.task("build", ["css", "js", "hugo", "cms"]);
diff --git a/package.json b/package.json
index 69331b7..4c78935 100644
--- a/package.json
+++ b/package.json
@@ -37,7 +37,7 @@
"gulp-replace": "^0.5.4",
"gulp-util": "^3.0.7",
"imports-loader": "^0.6.5",
- "netlify-cms": "^0.3.15",
+ "netlify-cms": "^0.4.0",
"postcss-cssnext": "^2.7.0",
"postcss-import": "^8.1.2",
"postcss-loader": "^0.9.1",
diff --git a/src/cms/index.html b/src/cms/index.html
index baa6e33..efa668b 100644
--- a/src/cms/index.html
+++ b/src/cms/index.html
@@ -6,7 +6,7 @@
<title>Content Manager</title>
<!-- Include the stylesheets from your site here -->
- <link rel="stylesheet" href="https://unpkg.com/netlify-cms@^0.3.9/dist/cms.css" />
+ <link rel="stylesheet" href="/cms.css" />
<!-- Include a CMS specific stylesheet here -->
</head>