edited post
This commit is contained in:
		
							parent
							
								
									7effdca573
								
							
						
					
					
						commit
						1ad25f9126
					
				
							
								
								
									
										12
									
								
								config.yml
								
								
								
								
							
							
						
						
									
										12
									
								
								config.yml
								
								
								
								
							| 
						 | 
				
			
			@ -106,14 +106,18 @@ params:
 | 
			
		|||
 | 
			
		||||
menu:
 | 
			
		||||
  main:
 | 
			
		||||
    - identifier: posts
 | 
			
		||||
      name: Posts
 | 
			
		||||
      url: /posts/
 | 
			
		||||
      weight: 30
 | 
			
		||||
    - identifier: admin
 | 
			
		||||
      name: Admin
 | 
			
		||||
      url: /admin/
 | 
			
		||||
      weight: 10
 | 
			
		||||
    - identifier: diary
 | 
			
		||||
      name: Diary
 | 
			
		||||
      url: /blog/
 | 
			
		||||
      weight: 30
 | 
			
		||||
    - identifier: posts
 | 
			
		||||
      name: Posts
 | 
			
		||||
      url: /posts/
 | 
			
		||||
      weight: 30
 | 
			
		||||
    # - identifier: tags
 | 
			
		||||
    #   name: Tags
 | 
			
		||||
    #   url: /tags/
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,3 +24,18 @@ collections:
 | 
			
		|||
      - { label: 'Slug', name: 'slug', widget: 'string' }
 | 
			
		||||
      - { label: 'Description', name: 'description', widget: 'string', required: false }
 | 
			
		||||
      - { label: 'Body', name: 'body', widget: 'markdown' }
 | 
			
		||||
 | 
			
		||||
  - name: 'diary'
 | 
			
		||||
    label: 'Diary'
 | 
			
		||||
    folder: 'content/blog'
 | 
			
		||||
    create: true
 | 
			
		||||
    publish_mode: editorial_workflow
 | 
			
		||||
    slug: '{{year}}-{{month}}-{{day}}-{{slug}}'
 | 
			
		||||
    editor:
 | 
			
		||||
      preview: false
 | 
			
		||||
    fields:
 | 
			
		||||
      - { label: 'Title', name: 'title', widget: 'string' }
 | 
			
		||||
      - { label: 'Publish Date', name: 'date', widget: 'datetime' }
 | 
			
		||||
      - { label: 'Slug', name: 'slug', widget: 'string' }
 | 
			
		||||
      - { label: 'Description', name: 'description', widget: 'string', required: false }
 | 
			
		||||
      - { label: 'Body', name: 'body', widget: 'markdown' }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue