]> xenbits.xensource.com Git - www-xenproject-org.git/commitdiff
update blog link with all releases inside footer
authorArnaud Guéras <arnaudgs@gmail.com>
Sat, 30 Nov 2024 08:30:18 +0000 (09:30 +0100)
committerArnaud Guéras <arnaudgs@gmail.com>
Sat, 30 Nov 2024 08:30:18 +0000 (09:30 +0100)
Signed-off-by: Arnaud Guéras <arnaudgs@gmail.com>
content/about/become-a-member.md
content/more/xen-server-branding.md
hugo.yaml
hugo_stats.json
themes/xen-project/layouts/partials/menu/walk.html

index 85e4d0fa3e6df05ee5fc61c2739683957404007a..d2a1c38333e57aa0478baea1fbb9ecf5b69e0236 100644 (file)
@@ -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
index 4e63485c61acfbf70ead38169b7362615740c77b..3502463040b26ce9f16334d23a9316d7c460d4b3 100644 (file)
@@ -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
 ---
 
 
index 9f3ab37b826a19af9770a4342e51a5533643fb5d..a2c1efc37c2b3cb0680c7fe02ea22fec9b86271b 100644 (file)
--- 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
+   
index 3278b66d4b2eb59a489bafe08d5c96695dc14767..d62e84cc19bd40d1b314978c20d5faa5334bbbe2 100644 (file)
@@ -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",
       "fa-globe",
       "fa-handshake",
       "fa-headset",
-      "fa-key",
       "fa-lightbulb",
       "fa-linkedin-in",
       "fa-medkit",
       "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",
       "media-block__title",
       "menu",
       "menu-toggle",
-      "mg-l-lg",
       "mg-l-md",
       "mg-neg-2rem",
       "mg-r-md",
       "contributing-code",
       "decision-making-conflict-resolution-role-nominations-and-elections",
       "developers",
-      "developpers",
       "did-you-know",
       "downloads",
       "elections",
       "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",
index 7105a9eb8c173d9f974ef882869367b90cf7707c..aa01e6b66b479e0c678f2d0b780fd00300489c45 100644 (file)
@@ -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) -}}
-      <li>
-        {{- $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 -}}
-        <a{{- range $k, $v := $attrs -}}{{- with $v }} {{ printf "%s=%q" $k $v | safeHTMLAttr }}{{- end -}}{{- end -}}>{{ $name }}</a>
-        <ul>
-          {{- range .Children -}}{{- if or $isFooter (not .Page.Params.showInFooterOnly) -}}<li><a href="{{ .URL }}">{{ .Name }}</a></li>{{- end -}}{{- end -}}
-        </ul>
-      </li>
-    {{- 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 -}}
     <li>
       {{- $attrs := dict "href" .URL -}}
       {{- if .Params.target -}}{{- $attrs = merge $attrs (dict "target" .Params.target) -}}{{- end -}}