From e6bc9fe80e9e984850d8d9623bd74439b8477734 Mon Sep 17 00:00:00 2001 From: darnodo Date: Thu, 20 Nov 2025 14:31:37 +0100 Subject: [PATCH] Add blog feature to homepage and menu Adds a blog feature card to the homepage and adds a blog entry to the main menu. Updates the configuration to enable blog features. --- content/_index.fr.md | 9 +++++++++ hugo.yaml | 18 +++++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/content/_index.fr.md b/content/_index.fr.md index 162d197..6c0fe95 100644 --- a/content/_index.fr.md +++ b/content/_index.fr.md @@ -42,6 +42,15 @@ layout: hextra-home imageClass="hx:top-[40%] hx:left-[36px] hx:w-[180%] hx:sm:w-[110%] hx:dark:opacity-80" style="background: radial-gradient(ellipse at 50% 80%,rgba(203, 28, 66, 0.1),hsla(0,0%,100%,0));" >}} + {{< hextra/feature-card + title="Blog" + subtitle="Retours d'expérience et articles techniques" + link="blog" + class="hx:aspect-auto hx:md:aspect-[1.1/1] hx:max-md:min-h-[340px]" + image="/images/blog.png" + imageClass="hx:top-[40%] hx:left-[36px] hx:w-[180%] hx:sm:w-[110%] hx:dark:opacity-80" + style="background: radial-gradient(ellipse at 50% 80%,rgba(142, 68, 173, 0.1),hsla(0,0%,100%,0));" + >}} {{< /hextra/feature-grid >}}
diff --git a/hugo.yaml b/hugo.yaml index ae969fa..3b401b9 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -13,15 +13,18 @@ menu: - name: Netlab pageRef: /netlab weight: 2 + - name: Blog + pageRef: /blog + weight: 3 - name: About pageRef: /about - weight: 3 - - name: Search weight: 4 + - name: Search + weight: 5 params: type: search - name: Gitea - weight: 5 + weight: 6 url: "https://gitea.arnodo.fr/Damien" params: icon: gitea @@ -46,6 +49,15 @@ params: flexsearch: # index page by: content | summary | heading | title index: heading + # Blog + blog: + list: + displayTags: true + sortBy: date + sortOrder: desc + pagerSize: 10 + article: + displayPagination: true markup: goldmark: