Skip to content

Commit

Permalink
Rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
DemoMacro committed Jun 25, 2020
1 parent 825171e commit 72469d7
Show file tree
Hide file tree
Showing 10 changed files with 4,247 additions and 4,266 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.log
node_modules/
pages/
pages/
*.lock
60 changes: 0 additions & 60 deletions .vuepress/config.js

This file was deleted.

13 changes: 2 additions & 11 deletions .vuepress/public/admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,11 @@ media_folder: "media" # Folder where user uploaded files should go
publish_mode: editorial_workflow

collections:
- name: "Home" # Used in routes, e.g., /admin/collections/blog
label: "Home" # Used in the UI
- name: "Post" # Used in routes, e.g., /admin/collections/blog
label: "Post" # Used in the UI
folder: "/" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- {label: "Title", name: "title", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime"}
- {label: "Body", name: "body", widget: "markdown"}
- name: "Docs" # Used in routes, e.g., /admin/collections/blog
label: "Docs" # Used in the UI
folder: "docs" # The path to the folder where the documents are stored
create: true # Allow users to create new documents in this collection
slug: "{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
fields: # The fields for each document, usually in front matter
- {label: "Title", name: "title", widget: "string"}
- {label: "Publish Date", name: "date", widget: "datetime"}
Expand Down
6 changes: 3 additions & 3 deletions .vuepress/public/admin/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!doctype html>
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>VuePress-NetlifyCMS - vuepress.imst.xyz - Demo Macro</title>
<title>Content Manager</title>
</head>

<body>
<!-- Include the script that builds the page and powers Netlify CMS -->
<script src="https://cdn.jsdelivr.net/npm/netlify-cms@2.3.1/dist/cms.js" integrity="sha256-Zv4A5owfOF4cDiraaQ7d66BMIs+XzF6tkmpAn+BAJ5U=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/netlify-cms@2/dist/cms.js" async defer></script>
</body>

</html>
4 changes: 0 additions & 4 deletions About.md

This file was deleted.

16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ title: README
---
# VuePress-NetlifyCMS

![](https://img.shields.io/github/license/DemoMacro/VuePress-NetlifyCMS.svg?style=flat)
![GitHub](https://img.shields.io/github/license/DemoMacro/VuePress-NetlifyCMS)

> A vuepress site hosted with Netlify CMS.
<!-- Markdown snippet -->
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/DemoMacro/VuePress-NetlifyCMS/)

### Quick Start
## Quick Start

Let's get started with VuePress-NetlifyCMS step by step.

Expand All @@ -22,7 +22,7 @@ Let's get started with VuePress-NetlifyCMS step by step.
Build command: vuepress build
Publish directory: pages
```
### Enable Identity and Git Gateway
## Enable Identity and Git Gateway

Netlify's Identity and Git Gateway services allow you to manage CMS admin users for your site without requiring them to have an account with your Git host or commit access on your repo. From your site dashboard on Netlify:

Expand All @@ -36,7 +36,8 @@ Netlify's Identity and Git Gateway services allow you to manage CMS admin users
You'll need to add this to the ```<head>``` of your CMS index page at /admin/index.html, as well as the ```<head>``` of your site's main index page.We could include the script in your site using Netlify's Script Injection feature;

```html
<script src="https://cdn.jsdelivr.net/npm/netlify-identity-widget@1.5.2/build/netlify-identity-widget.min.js"></script>
<!-- Include the script that enables Netlify Identity on this page. -->
<script src="https://cdn.jsdelivr.net/npm/netlify-identity-widget@1/build/netlify-identity-widget.min.js" async defer></script>
```
Add the following script before the closing body tag of your site's main index page using Netlify's Script Injection feature.

Expand All @@ -54,4 +55,9 @@ You'll need to add this to the ```<head>``` of your CMS index page at /admin/ind
</script>
```

> Now you can control site content in https://yoursite.netlify.com/admin/
> Now you can control site content in https://yoursite.netlify.com/admin/
## Donate

* [Alipay](https://qr.alipay.com/fkx06887yqy4k3q5kemidbc)
* [Paypal](https://www.paypal.me/DemoMacro)
8 changes: 0 additions & 8 deletions docs/README.md

This file was deleted.

1 change: 0 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

[build]
# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
Expand Down
15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
{
"name": "vuepress-netlifycms",
"version": "0.0.0",
"private": true,
"licenses": [
{
"type": "MIT",
"url": "https://spdx.org/licenses/MIT.html"
},
{
"type": "CC-BY-NC-SA-4.0",
"url": "https://spdx.org/licenses/CC-BY-NC-SA-4.0.html"
}
],
"scripts": {
"dev": "vuepress dev",
"build": "vuepress build"
},
"devDependencies": {
"vuepress": "^0.14.8"
"vuepress": "^1.5.2"
}
}
}
Loading

0 comments on commit 72469d7

Please sign in to comment.