changed menu config

This commit is contained in:
maximeg 2024-02-22 14:00:45 +01:00
parent 7b29257253
commit deaf0f5678
3 changed files with 34 additions and 23 deletions

11
content/index.md Normal file
View file

@ -0,0 +1,11 @@
---
title: "Ananke: a Hugo Theme"
description: "The last theme you'll ever need. Maybe."
# 1. To ensure Netlify triggers a build on our exampleSite instance, we need to change a file in the exampleSite directory.
theme_version: '2.8.2'
cascade:
featured_image: '/images/gohugo-default-sample-hero-image.jpg'
menus: ['main']
---
Welcome to my blog with some of my work in progress. I've been working on this book idea. You can read some of the chapters below.

View file

@ -2,7 +2,7 @@
title: "Revue de presse" 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." 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' featured_image: '/images/Victor_Hugo-Hunchback.jpg'
#menus: ['main'] menus: ['main']
--- ---
{{< figure src="/images/Victor_Hugo-Hunchback.jpg" title="Illustration from Victor Hugo et son temps (1881)" >}} {{< figure src="/images/Victor_Hugo-Hunchback.jpg" title="Illustration from Victor Hugo et son temps (1881)" >}}

View file

@ -98,28 +98,28 @@ collections:
- name: url - name: url
label: 'Lien du compte' label: 'Lien du compte'
widget: string widget: string
- label: 'Paramètres du menu' # - label: 'Paramètres du menu'
name: menus # name: menus
widget: object # widget: object
collapsed: true # collapsed: true
fields: # fields:
- label: 'Menu en haut' # - label: 'Menu en haut'
name: main # name: main
widget: list # widget: list
collapsed: true # collapsed: true
summary: '{{fields.name | upper}}' # summary: '{{fields.name | upper}}'
add_to_top: false # add_to_top: false
label_singular: 'Sous menu' # label_singular: 'Sous menu'
fields: # fields:
- label: 'Nom dans le menu' # - label: 'Nom dans le menu'
name: name # name: name
widget: string # widget: string
- label: 'Page référencée' # - label: 'Page référencée'
name: pageRef # name: pageRef
widget: string # widget: string
- label: 'Poids' # - label: 'Poids'
name: weight # name: weight
widget: number # widget: number