my-online-cookbook/src/admin/config.yml

86 lines
3.7 KiB
YAML

backend:
name: git-gateway
branch: main
media_folder: "src/recipe-images"
public_folder: "/recipe-images"
collections:
- name: "recipes"
label: "Recipes"
folder: "src/recipes"
create: true
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Image", name: "image", widget: "image"}
- label: "Tags"
name: "tags"
widget: "list"
required: false
summary: "{{fields.tag}}"
field: {label: "Tag", name: "tag", widget: "string"}
- {label: "Preparation time", name: "time", widget: "string", required: false}
- {label: "Number of servings", name: "servings", widget: "number", required: false}
- {label: "Source of the recipe", name: "sourceLabel", widget: "string", required: false}
- {label: "URL of the source of the recipe", name: "sourceURL", widget: "string", required: false}
- label: "Ingredients"
name: "ingredients"
widget: "list"
summary: "{{fields.ingredient}}"
field: {label: "Ingredient", name: "ingredient", widget: "string"}
- {label: "Body", name: "body", widget: "markdown"}
- name: "settings"
label: "Settings"
files:
- name: "site"
label: "Site settings"
delete: false
file: "src/_data/site.json"
fields:
- {label: "Site name", name: "name", widget: "string", hint: "used for SEO"}
- {label: "Site meta description", name: "metaDescription", widget: "string", hint: "used for SEO"}
- {label: "Author", name: "author", widget: "string"}
- {label: "Primary color", name: "primaryColor", widget: "color", hint: "make sure to choose a color that is light enough to display as a background behind dark text"}
- {label: "Secondary color", name: "secondaryColor", widget: "color", hint: "used for links and focus styles"}
- {label: "Search (label)", name: "searchLabel", widget: "string"}
- {label: "Search \"contains\" (label)", name: "searchContainsLabel", widget: "string"}
- {label: "Servings (label)", name: "servingsLabel", widget: "string"}
- {label: "Ingredients (label)", name: "ingredientsLabel", widget: "string"}
- name: "nav"
label: "Navigation"
delete: false
file: "src/_data/nav.json"
fields:
- label: "Items"
name: "items"
widget: "list"
fields:
- {label: "Text", name: "text", widget: "string"}
- name: "pages"
label: "Pages"
files:
- name: "home"
label: "Homepage"
file: "src/index.md"
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Add author to title", name: "authorInTitle", widget: "boolean"}
- {label: "Meta title", name: "metaTitle", widget: "string", hint: "used for SEO"}
- {label: "Highlighted tag", name: "highlightedTag", widget: "string", hint: "This must correspond to one of your recipes' tag !"}
- {label: "Title of the highlighted tag section (label)", name: "highlightedTitle", widget: "string"}
- {label: "Link text to all recipes with the highlighted tag (label)", name: "highlightedLinkText", widget: "string"}
- name: "recipes"
label: "All recipes page"
file: "src/recipes.md"
fields:
- {label: "Title", name: "title", widget: "string"}
- name: "tags"
label: "Tags pages"
file: "src/tag.md"
fields:
- {label: "All recipes (label)", name: "allRecipesLabel", widget: "string"}
- name: "about"
label: "About page"
file: "src/about.md"
fields:
- {label: "Title", name: "title", widget: "string"}
- {label: "Body", name: "body", widget: "markdown"}