From 6a1738b1e1748d7b1d04170b61fc45c6b21684e4 Mon Sep 17 00:00:00 2001 From: Diego Joss Date: Sun, 8 Jun 2025 22:39:27 +0200 Subject: [PATCH] rename Nouvelles -> News --- content/{nouvelle => news}/2025-06-05-nouveau-site.md | 0 hugo.toml | 2 +- static/admin/config.yml | 8 ++++---- 3 files changed, 5 insertions(+), 5 deletions(-) rename content/{nouvelle => news}/2025-06-05-nouveau-site.md (100%) 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: