added nested pages

This commit is contained in:
maxime-cool 2024-02-22 11:53:54 +01:00
parent 34ec576426
commit b070295a4b
2 changed files with 19 additions and 21 deletions

View file

@ -1,9 +0,0 @@
---
title: "Revue de presse"
description: "A few years ago, while visiting or, rather, rummaging about Notre-Dame, the author of this book found, in an obscure nook of one of the towers, the following word, engraved by hand upon the wall: —ANANKE."
featured_image: '/images/Victor_Hugo-Hunchback.jpg'
menus: ['main']
---
{{< figure src="/images/Victor_Hugo-Hunchback.jpg" title="Illustration from Victor Hugo et son temps (1881)" >}}
_The Hunchback of Notre-Dame_ (French: _Notre-Dame de Paris_) is a French Romantic/Gothic novel by Victor Hugo, published in 1831. The original French title refers to Notre Dame Cathedral, on which the story is centered. English translator Frederic Shoberl named the novel The Hunchback of Notre Dame in 1833 because at the time, Gothic novels were more popular than Romance novels in England. The story is set in Paris, France in the Late Middle Ages, during the reign of Louis XI.

View file

@ -10,18 +10,25 @@ locale: 'fr'
media_folder: "static/images" media_folder: "static/images"
public_folder: "/images" public_folder: "/images"
collections: collections:
- name: posts - name: pages
identifier_field: name label: Pages
label: 'Blog' # Used in the UI label_singular: 'Page'
folder: '_posts/blog' # The path to the folder where the documents are stored folder: content/pages
slug: '{{year}}-{{month}}-{{day}}-{{slug}}' # Filename template, e.g., yyyy-MM-dd-title.md create: true
fields: # The fields for each document, usually in front matter # adding a nested object will show the collection folder structure
- { label: 'Layout', name: 'layout', widget: 'hidden', default: 'blog' } nested:
- { label: 'Title', name: 'title', widget: 'string' } depth: 100 # max depth to show in the collection tree
- { label: 'Publish Date', name: 'date', widget: 'datetime' } summary: '{{title}}' # optional summary for a tree node, defaults to the inferred title field
- { label: 'Featured Image', name: 'thumbnail', widget: 'image' } # adding a path object allows editing the path of entries
- { label: 'Rating (scale of 1-5)', name: 'rating', widget: 'number' } # moving an existing entry will move the entire sub tree of the entry to the new location
- { label: 'Body', name: 'body', widget: 'markdown' } path: { widget: string, index_file: 'index' }
fields:
- label: Title
name: title
widget: string
- label: Body
name: body
widget: markdown
# - label: 'Settings' # - label: 'Settings'
# name: settings # name: settings
# files: # files: