From: Arnaud Guéras Date: Sat, 30 Nov 2024 08:30:18 +0000 (+0100) Subject: update blog link with all releases inside footer X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=56756f381c46f19a0e9d89dd35a5628616be9ea0;p=www-xenproject-org.git update blog link with all releases inside footer Signed-off-by: Arnaud Guéras --- diff --git a/content/about/become-a-member.md b/content/about/become-a-member.md index 85e4d0f..d2a1c38 100644 --- a/content/about/become-a-member.md +++ b/content/about/become-a-member.md @@ -4,6 +4,7 @@ description: Join the Xen community and become a member to actively contribute t keywords: "Xen Project membership, open-source virtualization, join Xen community, Xen Project contributors, Xen Project members, virtualization technology, Xen Project benefits, become a Xen member, Xen Project involvement, Xen Project participation" date: 2024-01-14T07:07:07+01:00 draft: false +header: false menus: main: parent: About diff --git a/content/more/xen-server-branding.md b/content/more/xen-server-branding.md index 4e63485..3502463 100644 --- a/content/more/xen-server-branding.md +++ b/content/more/xen-server-branding.md @@ -4,11 +4,14 @@ description: Access Xen Project's official branding and logo guidelines. Downloa keywords: "Xen Project branding, Xen Project logo, Xen branding guidelines, Xen logo download, Xen brand consistency, Xen official branding, Xen logo usage, Xen vector graphics, Xen images, Xen brand templates, Xen mascots, Xen branding resources, Xen brand assets, Xen Project marketing, Xen Project design" date: 2024-01-14T07:07:07+01:00 draft: false -showInFooterOnly: true +header: false menus: main: parent: More weight: 100 + params: + header: false + footer: true --- diff --git a/hugo.yaml b/hugo.yaml index 9f3ab37..a2c1efc 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -71,10 +71,26 @@ menus: - name: "Resources" pageRef: "/resources" weight: 40 + + - name: "More" + pageRef: "/More" + params: + header: false + weight: 100 + - name: "Blog" parent: "Resources" weight: 60 url: "/blog" + + - name: "Blog" + parent: "More" + params: + header: false + weight: 61 + url: "/blog/tag/releases/" + - name: "About" url: "/about" weight: 50 + diff --git a/hugo_stats.json b/hugo_stats.json index 3278b66..d62e84c 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -55,8 +55,6 @@ "article", "background-curve-reverse-top", "block-space", - "box-members", - "box-members__title", "box-resources", "box-resources__title", "btn", @@ -90,7 +88,6 @@ "content-markdown", "description", "download-search", - "fa", "fa-arrow-left", "fa-arrow-right", "fa-arrow-up-from-square", @@ -106,7 +103,6 @@ "fa-globe", "fa-handshake", "fa-headset", - "fa-key", "fa-lightbulb", "fa-linkedin-in", "fa-medkit", @@ -115,12 +111,10 @@ "fa-money-bill-alt", "fa-power-off", "fa-puzzle-piece", - "fa-right-arrow", "fa-road", "fa-search", "fa-shield-alt", "fa-shield-halved", - "fa-star", "fa-thumbs-up", "fa-twitter", "fa-up-right-from-square", @@ -174,7 +168,6 @@ "media-block__title", "menu", "menu-toggle", - "mg-l-lg", "mg-l-md", "mg-neg-2rem", "mg-r-md", @@ -240,7 +233,6 @@ "contributing-code", "decision-making-conflict-resolution-role-nominations-and-elections", "developers", - "developpers", "did-you-know", "downloads", "elections", @@ -294,7 +286,6 @@ "project-proposal-review", "project-team-roles", "project-wide-decision-making", - "projects", "projects-without-functional-project-leadership-team", "reliable-technology-with-a-solid-track-record", "requesting-reviews-reviews-and-voting", diff --git a/themes/xen-project/layouts/partials/menu/walk.html b/themes/xen-project/layouts/partials/menu/walk.html index 7105a9e..aa01e6b 100644 --- a/themes/xen-project/layouts/partials/menu/walk.html +++ b/themes/xen-project/layouts/partials/menu/walk.html @@ -1,27 +1,11 @@ {{- $page := .page -}} {{- $isFooter := .isFooter | default false -}} {{- range .menuEntries -}} - {{- $showInFooterOnly := false -}} - {{- with .Page -}}{{- $showInFooterOnly = .Params.showInFooterOnly -}}{{- end -}} - {{- $shouldDisplay := or (and (not $isFooter) (not $showInFooterOnly)) (and $isFooter (or (not $showInFooterOnly) $showInFooterOnly)) -}} - {{- if eq .Name "More" -}} - {{- $visibleChildren := 0 -}} - {{- range .Children -}}{{- if or $isFooter (not .Page.Params.showInFooterOnly) -}}{{- $visibleChildren = add $visibleChildren 1 -}}{{- end -}}{{- end -}} - {{- if and $shouldDisplay (gt $visibleChildren 0) -}} -
  • - {{- $attrs := dict "href" .URL -}} - {{- if .Params.target -}}{{- $attrs = merge $attrs (dict "target" .Params.target) -}}{{- end -}} - {{- if $page.IsMenuCurrent .Menu . -}}{{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") -}} - {{- else if $page.HasMenuCurrent .Menu . -}}{{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") -}}{{- end -}} - {{- $name := .Name | safeHTML -}} - {{- with .Identifier -}}{{- with T . -}}{{- $name = . | safeHTML -}}{{- end -}}{{- end -}} - {{ $name }} -
      - {{- range .Children -}}{{- if or $isFooter (not .Page.Params.showInFooterOnly) -}}
    • {{ .Name }}
    • {{- end -}}{{- end -}} -
    -
  • - {{- end -}} - {{- else if $shouldDisplay -}} + {{- $header := .Params.header | default true -}} + {{- $footer := .Params.footer | default true -}} + + {{- $shouldDisplay := or (and $isFooter $footer) (and (not $isFooter) $header) -}} + {{- if $shouldDisplay -}}
  • {{- $attrs := dict "href" .URL -}} {{- if .Params.target -}}{{- $attrs = merge $attrs (dict "target" .Params.target) -}}{{- end -}}