From: Arnaud Guéras Date: Thu, 19 Sep 2024 04:06:40 +0000 (+0200) Subject: change media-block parameter image to media for all pages X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6afaeb159ca37ffab36f4af29549804bfde90576;p=www-xenproject-org.git change media-block parameter image to media for all pages --- diff --git a/content/_index.md b/content/_index.md index 6a7ee44..f2a2850 100644 --- a/content/_index.md +++ b/content/_index.md @@ -8,7 +8,7 @@ draft: false label="A Linux Foundation Project" title="Bring the power of open virtualization everywhere." titleLevel="1" - image="/img/flatline/data-process2.svg" + media="/img/flatline/data-process2.svg" imageAlt="Xen Project Logo" mediaPosition="right" mobileMediaPosition="bottom" diff --git a/content/more/xen-server-branding.md b/content/more/xen-server-branding.md index ed46649..ceac502 100644 --- a/content/more/xen-server-branding.md +++ b/content/more/xen-server-branding.md @@ -15,7 +15,7 @@ menus: {{
}} {{}} You can download vector graphics, images and logos. diff --git a/content/projects/all-projects.md b/content/projects/all-projects.md index 5d1de5b..e5694c9 100644 --- a/content/projects/all-projects.md +++ b/content/projects/all-projects.md @@ -35,7 +35,7 @@ menus: {{
}} {{}} The Xen community is a dynamic and collaborative ecosystem comprised of developers, researchers, and enthusiasts dedicated to advancing open-source virtualization technology. With diverse backgrounds and expertise, members actively contribute to Xen's evolution, fostering innovation, sharing knowledge, and supporting one another through continuous development efforts. @@ -52,7 +52,7 @@ menus: {{
}} {{}} The Xen community is a dynamic and collaborative ecosystem comprised of developers, researchers, and enthusiasts dedicated to advancing open-source virtualization technology. diff --git a/content/projects/embedded-and-automative.md b/content/projects/embedded-and-automative.md index feb70a2..a2ae955 100644 --- a/content/projects/embedded-and-automative.md +++ b/content/projects/embedded-and-automative.md @@ -12,7 +12,7 @@ menus: {{
}} {{}} @@ -36,7 +36,7 @@ Our focus extends beyond ARMv7 to encompass ARMv8, x86-64, and RISC-V, catering {{
}} {{}} {{}} @@ -78,7 +78,7 @@ The Xen Project Hypervisor is uniquely placed to support a new range of use case {{
}} {{}} {{}} @@ -94,7 +94,7 @@ Xen is not just a technology; it’s a vision coming to life, shaping the future {{
}} {{}} {{}} diff --git a/content/projects/hypervisor.md b/content/projects/hypervisor.md index 9493013..33b24f9 100644 --- a/content/projects/hypervisor.md +++ b/content/projects/hypervisor.md @@ -113,7 +113,7 @@ aside: {{
}} {{}} The Xen Project hypervisor is an open-source type-1 or baremetal hypervisor, which makes it possible to run many instances of an operating system or indeed different operating systems in parallel on a single machine (or host). The Xen Project hypervisor is the only type-1 hypervisor that is available as open source. It is used as the basis for a number of different commercial and open source applications, such as: server virtualization, Infrastructure as a Service (IaaS), desktop virtualization, security applications, embedded and hardware appliances. The Xen Project hypervisor is powering the largest clouds in production today. {{}} @@ -142,7 +142,7 @@ The Xen Project hypervisor is an open-source type-1 or baremetal hypervisor, whi {{
}} {{}} The Xen Project hypervisor is developed by a worldwide community of individuals, researchers and employees of companies and that follow the Xen Project Governance process. The project is supported by the Xen Project Advisory Board made up of project member companies that fund the Xen Project. You can find a contribution breakdowns under Contribution Acknowledgments. {{}} diff --git a/content/resources/mailing-lists.md b/content/resources/mailing-lists.md index 415644e..5eb2dda 100644 --- a/content/resources/mailing-lists.md +++ b/content/resources/mailing-lists.md @@ -12,7 +12,7 @@ menus: {{
}} {{}} {{}} - Xen revolutionizes embedded systems, enabling fully-featured operating systems like Linux to coexist with smaller and faster RTOSes such as Zephyr. diff --git a/themes/xen-project/layouts/partials/media-block.html b/themes/xen-project/layouts/partials/media-block.html index 1bf2803..b11f22e 100644 --- a/themes/xen-project/layouts/partials/media-block.html +++ b/themes/xen-project/layouts/partials/media-block.html @@ -31,13 +31,7 @@
- {{ if .Image }} - {{ .ImageAlt }} - {{ else if .Media }} + {{ if .Media }} {{ $trimmedMedia := trim .Media " \n\r\t" }} {{ $lowerMedia := lower $trimmedMedia }} {{ if or (findRE "\\.png$|\\.jpg$|\\.jpeg$|\\.avif$|\\.webp$|\\.gif$|\\.svg$" $lowerMedia) }} diff --git a/themes/xen-project/layouts/shortcodes/media-block.html b/themes/xen-project/layouts/shortcodes/media-block.html index eed844e..c9bf300 100644 --- a/themes/xen-project/layouts/shortcodes/media-block.html +++ b/themes/xen-project/layouts/shortcodes/media-block.html @@ -1,5 +1,4 @@ {{ $content := .Inner }} -{{ $image := .Get "image" | default "" }} {{ $imageAlt := .Get "imageAlt" | default "" }} {{ $imageSize := .Get "imageSize" | default "" }} {{ $label := .Get "label" | default "" }} @@ -12,7 +11,6 @@ {{ partial "media-block.html" (dict "Content" $content - "Image" $image "ImageAlt" $imageAlt "ImageSize" $imageSize "Label" $label