This is an automated email from the ASF dual-hosted git repository. rohit pushed a commit to branch docusaurus-staging in repository https://gitbox.apache.org/repos/asf/cloudstack-www.git
commit ab91d3abe2fbfda7d22b3b34dc43d25527e690ad Author: Rohit Yadav <[email protected]> AuthorDate: Thu Feb 9 15:57:47 2023 +0530 test netlify cms admin Signed-off-by: Rohit Yadav <[email protected]> --- blog/2021-11-15-first-blog-post.md | 13 +++++++++++++ static/admin/config.yml | 33 +++++++++++++++++++++++++++++++++ static/admin/index.html | 12 ++++++++++++ 3 files changed, 58 insertions(+) diff --git a/blog/2021-11-15-first-blog-post.md b/blog/2021-11-15-first-blog-post.md new file mode 100644 index 00000000..d60ad4b0 --- /dev/null +++ b/blog/2021-11-15-first-blog-post.md @@ -0,0 +1,13 @@ +--- +title: First Blog Post +slug: first-blog-post +tags: + - foo + - bar +authors: + - name: Garrison McMullen + title: Instruction Writer + url: https://github.com/garrison0 + image_url: https://avatars.githubusercontent.com/u/4089393?v=4 +--- +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 00000000..d6b2f26d --- /dev/null +++ b/static/admin/config.yml @@ -0,0 +1,33 @@ +backend: + name: github + branch: docusaurus-staging + repo: shapeblue/cloudstack-www + +# These lines should *not* be indented +media_folder: "static/img" # Media files will be stored in the repo under static/images/uploads +public_folder: "/img/" # The src attribute for uploaded media will begin with /images/uploads + +collections: +- name: blog + label: "blog" + folder: blog + identifier_field: title + extension: md + widget: "list" + create: true + slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md + fields: + - { name: title, label: Title, widget: string } + - { name: body, label: Body, widget: markdown } + - { name: slug, label: Slug, widget: string } + - label: "Tags" + name: "tags" + widget: "list" + - label: "Authors" + name: "authors" + widget: "list" + fields: + - { name: name, label: Name, widget: string } + - { name: title, label: Title, widget: string } + - { name: url, label: URL, widget: string } + - { name: imageUrl, label: ImageURL, widget: string } diff --git a/static/admin/index.html b/static/admin/index.html new file mode 100644 index 00000000..823c7db5 --- /dev/null +++ b/static/admin/index.html @@ -0,0 +1,12 @@ +<!doctype html> +<html> +<head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>Content Manager</title> + </head> + <body> + <!-- Include the script that builds the page and powers Netlify CMS --> + <script src="https://unpkg.com/netlify-cms@^2.0.0/dist/netlify-cms.js"></script> + </body> +</html>
