mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-11-04 10:40:09 +01:00 
			
		
		
		
	Add NetlifyCMS config
This commit is contained in:
		
							
								
								
									
										35
									
								
								static/admin/config.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								static/admin/config.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
backend:
 | 
			
		||||
  name: git-gateway
 | 
			
		||||
  branch: master
 | 
			
		||||
 | 
			
		||||
media_folder: "static/uploads"
 | 
			
		||||
public_folder: "/uploads"
 | 
			
		||||
 | 
			
		||||
collections:
 | 
			
		||||
  - name: "posts"
 | 
			
		||||
    label: "Posts"
 | 
			
		||||
    folder: "content/posts"
 | 
			
		||||
    create: true
 | 
			
		||||
    slug: "{{year}}-{{month}}-{{day}}---{{slug}}"
 | 
			
		||||
    fields:
 | 
			
		||||
      - {label: "Template", name: "template", widget: "hidden", default: "post"}
 | 
			
		||||
      - {label: "Title", name: "title", widget: "string"}
 | 
			
		||||
      - {label: "Slug", name: "slug", widget: "string"}
 | 
			
		||||
      - {label: "Draft", name: "draft", widget: "boolean", default: true}
 | 
			
		||||
      - {label: "Publish Date", name: "date", widget: "datetime"}
 | 
			
		||||
      - {label: "Description", name: "description", widget: "text"}
 | 
			
		||||
      - {label: "Category", name: "category", widget: "string"}
 | 
			
		||||
      - {label: "Body", name: "body", widget: "markdown"}
 | 
			
		||||
      - {label: "Tags", name: "tags", widget: "list"}
 | 
			
		||||
 | 
			
		||||
  - name: "pages"
 | 
			
		||||
    label: "Pages"
 | 
			
		||||
    folder: "content/pages"
 | 
			
		||||
    create: true
 | 
			
		||||
    slug: "{{slug}}"
 | 
			
		||||
    fields:
 | 
			
		||||
      - {label: "Template", name: "template", widget: "hidden", default: "page"}
 | 
			
		||||
      - {label: "Title", name: "title", widget: "string"}
 | 
			
		||||
      - {label: "Slug", name: "slug", widget: "string"}
 | 
			
		||||
      - {label: "Draft", name: "draft", widget: "boolean", default: true}
 | 
			
		||||
      - {label: "Body", name: "body", widget: "markdown"}
 | 
			
		||||
		Reference in New Issue
	
	Block a user