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.
This commit is contained in:
darnodo
2025-11-20 14:31:37 +01:00
parent 7bc92e0923
commit e6bc9fe80e
2 changed files with 24 additions and 3 deletions

View File

@@ -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 >}}
<div style="margin-top: 8rem; margin-bottom: 1.5rem;">

View File

@@ -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: