diff --git a/content/nouvelle/2025-06-05-nouveau-site.md b/content/news/2025-06-05-nouveau-site.md similarity index 100% rename from content/nouvelle/2025-06-05-nouveau-site.md rename to content/news/2025-06-05-nouveau-site.md diff --git a/hugo.toml b/hugo.toml index 66e247b..b8f8c2f 100644 --- a/hugo.toml +++ b/hugo.toml @@ -10,7 +10,7 @@ enableRobotsTXT = true pagerSize = 3 # this is set low for demonstrating with dummy content. Set to a higher number [params] -mainSections = ["nouvelles", "activite"] +mainSections = ["news", "activite"] recent_posts_number = 3 [params.ananke] diff --git a/static/admin/config.yml b/static/admin/config.yml index a9a7cd5..8f66c6b 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -29,11 +29,11 @@ collections: - { label: "Type", name: "type", widget: "select", default: "autre", options: [ski, camp, AG, autre] } - { label: "Contenu", name: "body", widget: "markdown", modes: [rich_text] } - - label: "Nouvelles" - name: "nouvelle" + - label: "News" + name: "news" widget: "string" - folder: "content/nouvelle" - preview_path: "nouvelle/{{slug}}" + folder: "content/news" + preview_path: "news/{{slug}}" slug: "{{year}}-{{month}}-{{day}}-{{slug}}" create: true fields: