diff options
| -rw-r--r-- | gulpfile.babel.js | 3 | ||||
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | site/layouts/_default/list.html | 2 | ||||
| -rw-r--r-- | site/layouts/partials/blog.html | 2 | ||||
| -rw-r--r-- | src/cms/index.html | 2 |
5 files changed, 7 insertions, 4 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/site/layouts/_default/list.html b/site/layouts/_default/list.html index 3c94597..33d722a 100644 --- a/site/layouts/_default/list.html +++ b/site/layouts/_default/list.html @@ -1,7 +1,7 @@ {{ partial "head" . }} {{ partial "nav" . }} -{{ partial "jumbotron" (dict "imageUrl" "/img/blog-index.jpg" "title" "Latests stories") }} +{{ partial "jumbotron" (dict "imageUrl" "/img/blog-index.jpg" "title" "Latest stories") }} <div class="mw7 center"> <ul class="flex-ns flex-wrap mhn1-ns pa3"> diff --git a/site/layouts/partials/blog.html b/site/layouts/partials/blog.html index 0661929..aaa6f01 100644 --- a/site/layouts/partials/blog.html +++ b/site/layouts/partials/blog.html @@ -1,7 +1,7 @@ <div class="bg-off-white pv4"> <div class="ph3 mw7 center"> - <h2 class="f2 b lh-title mb3">Latests stories</h1> + <h2 class="f2 b lh-title mb3">Latest stories</h1> <div class="w-100 flex-ns mhn1-ns flex-wrap mb3"> {{ range where .Data.Pages "Type" "post" }} 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> |
