commit 446595ceff8375826c246dc5698dbbb3bff995bc
Author: TheThomaas <thethomaas@protonmail.ch>
Date: Mon Apr 21 17:30:14 2025 +0200
Add 11ty Navigation
79 lines
3.7 KiB
YAML
79 lines
3.7 KiB
YAML
backend:
|
|
name: git-gateway
|
|
branch: main
|
|
media_folder: "src/img/recipes"
|
|
public_folder: "/img/recipes"
|
|
|
|
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: "pages"
|
|
label: "Pages"
|
|
files:
|
|
- name: "home"
|
|
label: "Homepage"
|
|
file: "src/index.md"
|
|
fields:
|
|
- {label: "Title", name: "title", widget: "string"}
|
|
- {label: "Hide from header", name: "hiddenFromNav", widget: "boolean", default: false}
|
|
- {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"}
|
|
- {label: "Hide from header", name: "hiddenFromNav", widget: "boolean", default: false}
|
|
- 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: "Hide from header", name: "hiddenFromNav", widget: "boolean", default: false}
|
|
- {label: "Body", name: "body", widget: "markdown"} |