Fix
This commit is contained in:
parent
41b055a729
commit
a6d3a4c733
|
@ -25,6 +25,20 @@ collections:
|
|||
- { label: 'Description', name: 'description', widget: 'string', required: false }
|
||||
- { label: 'Body', name: 'body', widget: 'markdown' }
|
||||
|
||||
- name: 'daily'
|
||||
label: 'Daily'
|
||||
folder: 'content/daily'
|
||||
create: true
|
||||
publish_mode: editorial_workflow
|
||||
slug: '{{year}}-{{month}}-{{day}}'
|
||||
editor:
|
||||
preview: false
|
||||
fields:
|
||||
- { label: 'Title', name: 'title', widget: 'string' }
|
||||
- { label: 'Publish Date', name: 'date', widget: 'datetime' }
|
||||
- { label: 'Slug', name: 'slug', widget: 'string' }
|
||||
- { label: 'Body', name: 'body', widget: 'markdown' }
|
||||
|
||||
- name: 'diary'
|
||||
label: 'Diary'
|
||||
folder: 'content/diary'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{ define "main" }}
|
||||
<div class="max-w-6xl mx-auto">
|
||||
<div class="mb-20 text-center">
|
||||
<div class="mb-32 mt-8 text-center">
|
||||
<h1 class="text-4xl font-bold mb-2 text-black">{{ .Title }}</h1>
|
||||
</div>
|
||||
<div class="grid grid-cols-1 gap-8 auto-rows-max">
|
||||
|
@ -25,4 +25,8 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex space-x-12 justify-center mt-24 text-2xl">
|
||||
<div class=""><a href="/posts/">Posts</a></div>
|
||||
<div class=""><a href="/daily/">Daily</a></div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue