change the whole parsing of markdown functionality

This commit is contained in:
2024-10-07 15:35:22 +02:00
parent fb6ca6c245
commit 11cc9f6d0a
21 changed files with 311 additions and 264 deletions

View File

@ -64,11 +64,6 @@ collections:
fields:
- { label: Title, name: title, widget: string }
- { label: Body, name: body, widget: markdown }
- {
label: Work history prelude,
name: work_history_prelude,
widget: markdown,
}
- label: Work history
name: work_history
widget: list
@ -85,37 +80,7 @@ collections:
- { label: City, name: city, widget: string, required: false }
- { label: Country, name: country, widget: string, required: false }
- { label: Displayed, name: displayed, widget: boolean, default: true }
- label: Projects
name: projects
widget: list
fields:
- { label: Project name, name: name, widget: string }
- {
label: Displayed,
name: displayed,
widget: boolean,
default: true,
}
- { label: Description, name: body, widget: markdown }
- {
label: Cover image,
name: cover_image,
widget: image,
required: false,
}
- label: Presentations
name: presentations
widget: list
fields:
- { label: Name, name: name, widget: string }
- {
label: Displayed,
name: displayed,
widget: boolean,
default: true,
}
- { label: Description, name: description, widget: markdown }
- { label: Link, name: link, widget: string }
- { label: Thumbnail, name: thumbnail, widget: image, required: false }
- label: Education
name: education
widget: list
@ -128,6 +93,7 @@ collections:
default: true,
}
- { label: Description, name: description, widget: markdown }
- { label: Thumbnail, name: thumbnail, widget: image, required: false }
- name: 'projects' # Used in routes, e.g., /admin/collections/blog
label: 'Showcase projects' # Used in the UI
folder: '_projects/' # The path to the folder where the documents are stored