]> xenbits.xensource.com Git - www-xenproject-org.git/commitdiff
change media-block parameter image to media for all pages
authorArnaud Guéras <arnaudgs@gmail.com>
Thu, 19 Sep 2024 04:06:40 +0000 (06:06 +0200)
committerArnaud Guéras <arnaudgs@gmail.com>
Thu, 19 Sep 2024 04:06:40 +0000 (06:06 +0200)
content/_index.md
content/more/xen-server-branding.md
content/projects/all-projects.md
content/projects/embedded-and-automative.md
content/projects/hypervisor.md
content/resources/mailing-lists.md
themes/xen-project/layouts/partials/media-block.html
themes/xen-project/layouts/shortcodes/media-block.html

index 6a7ee440de1024a6033003ce15be7961dda43ae4..f2a285007550781d8d074f0e4a43a209aa216d85 100644 (file)
@@ -8,7 +8,7 @@ draft: false
     label="A Linux Foundation Project"
     title="Bring the power of <a href=\"#\">open virtualization</a> everywhere."
     titleLevel="1"
-    image="/img/flatline/data-process2.svg"
+    media="/img/flatline/data-process2.svg"
     imageAlt="Xen Project Logo"
     mediaPosition="right"
     mobileMediaPosition="bottom"
index ed46649dc3b8b3c930ace4a0ae0c6b7e87e53959..ceac5020456d9a0065cba8cbb6351a8fe2fb415b 100644 (file)
@@ -15,7 +15,7 @@ menus:
 {{<section >}} 
   {{<media-block
     title="Download"
-    image="/img/logo-xen.svg"
+    media="/img/logo-xen.svg"
     imageAlt="Xen Project Logo"
   >}}
   You can download vector graphics, images and logos.
index 5d1de5b4309a96d44c4c02afa1a4c709fc4c5b5b..e5694c98cc29b6bcfae769d1e2bbe11037b1c68c 100644 (file)
@@ -35,7 +35,7 @@ menus:
 {{<section>}}
   {{<media-block
     title="Lead by a <strong>dedicated community</strong>"
-    image="/img/flatline/team-work.svg"
+    media="/img/flatline/team-work.svg"
   >}}
   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:
   {{<section>}}
   {{<media-block
     title="About **Xen Project**</strong>"
-    image="/img/flatline/data_process.svg"
+    media="/img/flatline/data_process.svg"
     mediaPosition="right"
   >}}
 The Xen community is a dynamic and collaborative ecosystem comprised of developers, researchers, and enthusiasts dedicated to advancing open-source virtualization technology.
index feb70a2adf1d54f86c8042eeaef15ada2f667655..a2ae9550915e63396fd295469eec229d41b7c30b 100644 (file)
@@ -12,7 +12,7 @@ menus:
 {{<section>}}
   {{<media-block
     title="Embedded systems redefined"
-    image="/img/logos/arm-logo.svg"
+    media="/img/logos/arm-logo.svg"
     imageSize="50%"
     imageAlt="ARM logo"
   >}}
@@ -36,7 +36,7 @@ Our focus extends beyond ARMv7 to encompass ARMv8, x86-64, and RISC-V, catering
 {{<section>}}
   {{<media-block
     title="What does this mean?"
-    image="/img/flatline/data_and_settings.svg"
+    media="/img/flatline/data_and_settings.svg"
     mediaPosition="right"
   >}}
   {{<md>}}
@@ -78,7 +78,7 @@ The Xen Project Hypervisor is uniquely placed to support a new range of use case
 {{<section>}}
   {{<media-block
     title="Functional safety"
-    image="/img/others/xen-progress-certification.png"
+    media="/img/others/xen-progress-certification.png"
     mediaPosition="right"
   >}}
 {{<md>}}
@@ -94,7 +94,7 @@ Xen is not just a technology; it’s a vision coming to life, shaping the future
 {{<section>}}
   {{<media-block
     title="Functional safety"
-    image="/img/flatline/coding.svg"
+    media="/img/flatline/coding.svg"
   >}}
 {{<md>}}
 
index 949301334fd855cabdabf52762e26d32d072ab28..33b24f90d32495725d26c18e41c8b6d84dfd232e 100644 (file)
@@ -113,7 +113,7 @@ aside:
 {{<section>}}
   {{<media-block
     title="TITLE (TODO)"
-    image="/img/flatline/data-center.svg"
+    media="/img/flatline/data-center.svg"
   >}}
 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.
 {{</media-block>}}
@@ -142,7 +142,7 @@ The Xen Project hypervisor is an open-source type-1 or baremetal hypervisor, whi
 {{<section>}}
   {{<media-block
     title="History"
-    image="/img/flatline/timeline.svg"
+    media="/img/flatline/timeline.svg"
   >}}
 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.
 {{</media-block>}}
index 415644e0889ac944ba6dc89cb6ace1c6a883cb7c..5eb2ddae7c1c4324b11ba066a14e5db5b4f13e88 100644 (file)
@@ -12,7 +12,7 @@ menus:
 {{<section>}}
   {{<media-block
     title="What does this mean?"
-    image="/img/flatline/new-message.svg"
+    media="/img/flatline/new-message.svg"
   >}}
   {{<md>}}
 - Xen revolutionizes embedded systems, enabling fully-featured operating systems like Linux to coexist with smaller and faster RTOSes such as Zephyr.
index 1bf2803bdffc953d62f09a7ad27b8d033088bb31..b11f22e5efd7f0d3d253ba7c95ae9327a2525cee 100644 (file)
     </div>
   </div>
   <div class="media-block__media">
-    {{ if .Image }}
-      <img
-        src="{{ .Site.BaseURL }}{{ .Image }}"
-        alt="{{ .ImageAlt }}"
-        {{ if .ImageSize }}width="{{ .ImageSize }}" height="auto"{{ end }}
-      />
-    {{ 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) }}
index eed844ec621a55ec885c1c15a1fec9c82b7c4888..c9bf3004746b97ea008788c581848b6cd8363182 100644 (file)
@@ -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