mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-27 15:08:30 +02:00
WIP: adding netlify CMS (#16)
* WIP: adding netlify CMS * Update header.html Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>
This commit is contained in:
co-authored by
Andrey Vasnetsov
parent
f1d4354a30
commit
101ed5bb0f
@@ -0,0 +1,27 @@
|
|||||||
|
backend:
|
||||||
|
name: git-gateway
|
||||||
|
branch: cms # Branch to update (optional; defaults to master)
|
||||||
|
media_folder: static/blog_data/from_cms
|
||||||
|
public_folder: /img
|
||||||
|
collections:
|
||||||
|
- name: 'blog'
|
||||||
|
label: 'Blog'
|
||||||
|
folder: 'content/blog'
|
||||||
|
create: true
|
||||||
|
slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
|
||||||
|
editor:
|
||||||
|
preview: false
|
||||||
|
fields:
|
||||||
|
- { label: 'Title', name: 'title', widget: 'string' }
|
||||||
|
- { label: 'Short Description', name: 'short_description', widget: 'string'}
|
||||||
|
- { label: 'Description', name: 'description', widget: 'string' }
|
||||||
|
- { label: 'Preview Image', name: 'preview_image', widget: 'preview_image'}
|
||||||
|
- { label: 'Weight', name: 'weight', widget: 'number'}
|
||||||
|
- { label: 'Category', name: 'category', widget: 'string'}
|
||||||
|
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
|
||||||
|
- { label: 'Author', name: 'author', widget: 'string'}
|
||||||
|
- { label: 'Author Link', name: 'author_link', widget: 'string'}
|
||||||
|
- { label: 'Featured Post', name: 'featured', widget: 'boolean', default: 'false'}
|
||||||
|
- { label: 'Category', name: 'categories', widget: "select", options: ["News"]}
|
||||||
|
- { label: "Tags", name: "tags", widget: "list", default: [ "news" ] }
|
||||||
|
- { label: 'Body', name: 'body', widget: 'markdown' }
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
|
<title>Content Manager</title>
|
||||||
|
<!-- Include the script that enables Netlify Identity on this page. -->
|
||||||
|
<script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script>
|
||||||
|
</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>
|
||||||
@@ -49,6 +49,8 @@
|
|||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<script src="js/respond.js"></script><![endif]-->
|
<script src="js/respond.js"></script><![endif]-->
|
||||||
|
|
||||||
|
<!-- Netlify CMS -->
|
||||||
|
<!-- <script src="https://identity.netlify.com/v1/netlify-identity-widget.js"></script> -->
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@@ -137,4 +139,4 @@
|
|||||||
</div><!-- End Mobile Menu -->
|
</div><!-- End Mobile Menu -->
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
<!--End Main Header -->
|
<!--End Main Header -->
|
||||||
|
|||||||
Reference in New Issue
Block a user