diff --git a/content/master/README.md b/content/master/README.md index 65a10662..637970dd 100644 --- a/content/master/README.md +++ b/content/master/README.md @@ -3,7 +3,7 @@ tocHidden: true --- # Overview -![Crossplane](media/banner.png) +![Crossplane](/media/banner.png) Crossplane is an open source Kubernetes add-on that transforms your cluster into a **universal control plane**. Crossplane enables platform teams to assemble diff --git a/content/master/_index.md b/content/master/_index.md index 353d2ea5..0ff16a49 100644 --- a/content/master/_index.md +++ b/content/master/_index.md @@ -5,7 +5,7 @@ cascade: version: master --- -{{< img src="media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} +{{< img src="/media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} Crossplane is an open source Kubernetes add-on that transforms your cluster into a **universal control plane**. Crossplane enables platform teams to assemble diff --git a/content/master/concepts/composition.md b/content/master/concepts/composition.md index 08d6f6a6..384e8933 100644 --- a/content/master/concepts/composition.md +++ b/content/master/concepts/composition.md @@ -241,10 +241,10 @@ scenarios, including: take minutes to provision on-demand. [managed-resources]: {{}} -[xrs-and-mrs]: /master/media/composition-xrs-and-mrs.svg +[xrs-and-mrs]: /media/composition-xrs-and-mrs.svg [xr-ref]: {{}} -[how-it-works]: /master/media/composition-how-it-works.svg +[how-it-works]: /media/composition-how-it-works.svg [crd-docs]: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/ [provider-kubernetes]: https://marketplace.upbound.io/providers/crossplane-contrib/provider-kubernetes [provider-helm]: https://marketplace.upbound.io/providers/crossplane-contrib/provider-helm/ -[claims-and-xrs]: /master/media/composition-claims-and-xrs.svg \ No newline at end of file +[claims-and-xrs]: /media/composition-claims-and-xrs.svg \ No newline at end of file diff --git a/content/master/contributing/docs.md b/content/master/contributing/docs.md index a09f337e..82638603 100644 --- a/content/master/contributing/docs.md +++ b/content/master/contributing/docs.md @@ -336,11 +336,11 @@ By default the image isn't resized. An example of using the `img` shortcode: ```html -{{}} +{{}} ``` Which generates this responsive image (change your browser size to see it change): -{{Crossplane Popsicle Truck}} +{{Crossplane Popsicle Truck}} # Links Crossplane docs support standard [Markdown diff --git a/content/master/getting-started/_index.md b/content/master/getting-started/_index.md index a75565e5..733e6c91 100644 --- a/content/master/getting-started/_index.md +++ b/content/master/getting-started/_index.md @@ -3,7 +3,7 @@ title: Getting Started weight: 4 --- -{{< img src="../media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} +{{< img src="/media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} Crossplane is an open source Kubernetes add-on that transforms your cluster into a **universal control plane**. Crossplane enables platform teams to assemble diff --git a/content/master/media/README.md b/content/media/README.md similarity index 100% rename from content/master/media/README.md rename to content/media/README.md diff --git a/content/master/media/banner.png b/content/media/banner.png similarity index 100% rename from content/master/media/banner.png rename to content/media/banner.png diff --git a/content/master/media/composition-claims-and-xrs.svg b/content/media/composition-claims-and-xrs.svg similarity index 100% rename from content/master/media/composition-claims-and-xrs.svg rename to content/media/composition-claims-and-xrs.svg diff --git a/content/master/media/composition-how-it-works.svg b/content/media/composition-how-it-works.svg similarity index 100% rename from content/master/media/composition-how-it-works.svg rename to content/media/composition-how-it-works.svg diff --git a/content/master/media/composition-xrs-and-mrs.svg b/content/media/composition-xrs-and-mrs.svg similarity index 100% rename from content/master/media/composition-xrs-and-mrs.svg rename to content/media/composition-xrs-and-mrs.svg diff --git a/content/master/media/logo.svg b/content/media/logo.svg similarity index 100% rename from content/master/media/logo.svg rename to content/media/logo.svg diff --git a/content/v1.10/concepts/composition.md b/content/v1.10/concepts/composition.md index 2ad9af55..69b5df8f 100644 --- a/content/v1.10/concepts/composition.md +++ b/content/v1.10/concepts/composition.md @@ -241,10 +241,10 @@ scenarios, including: take minutes to provision on-demand. [managed-resources]: {{}} -[xrs-and-mrs]: /v1.10/media/composition-xrs-and-mrs.svg +[xrs-and-mrs]: /media/composition-xrs-and-mrs.svg [xr-ref]: {{}} -[how-it-works]: /v1.10/media/composition-how-it-works.svg +[how-it-works]: /media/composition-how-it-works.svg [crd-docs]: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/ [provider-kubernetes]: https://marketplace.upbound.io/providers/crossplane-contrib/provider-kubernetes [provider-helm]: https://marketplace.upbound.io/providers/crossplane-contrib/provider-helm/ -[claims-and-xrs]: /v1.10/media/composition-claims-and-xrs.svg +[claims-and-xrs]: /media/composition-claims-and-xrs.svg diff --git a/content/v1.10/contributing/docs.md b/content/v1.10/contributing/docs.md index a84c4c8b..755fd6ff 100644 --- a/content/v1.10/contributing/docs.md +++ b/content/v1.10/contributing/docs.md @@ -171,11 +171,11 @@ By default the image isn't resized. An example of using the `img` shortcode: ```html -{{}} +{{}} ``` Which generates this responsive image (change your browser size to see it change): -{{Crossplane Popsicle Truck}} +{{Crossplane Popsicle Truck}} ### Links Crossplane docs support standard [Markdown diff --git a/content/v1.10/getting-started/_index.md b/content/v1.10/getting-started/_index.md index 62bb3d52..066b2722 100644 --- a/content/v1.10/getting-started/_index.md +++ b/content/v1.10/getting-started/_index.md @@ -3,7 +3,7 @@ title: Getting Started weight: 4 --- -{{< img src="../media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} +{{< img src="/media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} Crossplane is an open source Kubernetes add-on that transforms your cluster into a **universal control plane**. Crossplane enables platform teams to assemble diff --git a/content/v1.10/media/README.md b/content/v1.10/media/README.md deleted file mode 100644 index d818f4d5..00000000 --- a/content/v1.10/media/README.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -tocHidden: true ---- -# Crossplane Documentation Media - -The sources of the images in this file are: - -* `logo.svg` - https://github.com/crossplane/artwork/tree/420102/logo -* `composition-*.svg` - https://drive.google.com/drive/folders/1ld-XNglPQBT4ue9IBVuDs4HQRizr-5AY?usp=sharing \ No newline at end of file diff --git a/content/v1.10/media/banner.png b/content/v1.10/media/banner.png deleted file mode 100644 index 0a495e1d..00000000 Binary files a/content/v1.10/media/banner.png and /dev/null differ diff --git a/content/v1.10/media/composition-claims-and-xrs.svg b/content/v1.10/media/composition-claims-and-xrs.svg deleted file mode 100644 index d01cde26..00000000 --- a/content/v1.10/media/composition-claims-and-xrs.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/content/v1.10/media/composition-how-it-works.svg b/content/v1.10/media/composition-how-it-works.svg deleted file mode 100644 index 25ee6889..00000000 --- a/content/v1.10/media/composition-how-it-works.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/content/v1.10/media/composition-xrs-and-mrs.svg b/content/v1.10/media/composition-xrs-and-mrs.svg deleted file mode 100644 index fa2f0117..00000000 --- a/content/v1.10/media/composition-xrs-and-mrs.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/content/v1.10/media/logo.svg b/content/v1.10/media/logo.svg deleted file mode 100644 index 3af90369..00000000 --- a/content/v1.10/media/logo.svg +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/content/v1.8/_index.md b/content/v1.8/_index.md index de103e32..e7db8237 100644 --- a/content/v1.8/_index.md +++ b/content/v1.8/_index.md @@ -5,7 +5,7 @@ cascade: version: "1.8" --- -{{< img src="../media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} +{{< img src="/media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} Crossplane is an open source Kubernetes add-on that transforms your cluster into diff --git a/content/v1.8/concepts/composition.md b/content/v1.8/concepts/composition.md index 4fec0fd3..d4e89a9a 100644 --- a/content/v1.8/concepts/composition.md +++ b/content/v1.8/concepts/composition.md @@ -241,10 +241,10 @@ scenarios, including: take minutes to provision on-demand. [managed-resources]: {{}} -[xrs-and-mrs]: /v1.8/media/composition-xrs-and-mrs.svg +[xrs-and-mrs]: /media/composition-xrs-and-mrs.svg [xr-ref]: {{}} -[how-it-works]: /v1.8/media/composition-how-it-works.svg +[how-it-works]: /media/composition-how-it-works.svg [crd-docs]: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/ [provider-kubernetes]: https://github.com/crossplane-contrib/provider-kubernetes [provider-helm]: https://github.com/crossplane-contrib/provider-helm -[claims-and-xrs]: /v1.8/media/composition-claims-and-xrs.svg +[claims-and-xrs]: /media/composition-claims-and-xrs.svg diff --git a/content/v1.8/getting-started/_index.md b/content/v1.8/getting-started/_index.md index fee1f60f..969eb01e 100644 --- a/content/v1.8/getting-started/_index.md +++ b/content/v1.8/getting-started/_index.md @@ -4,7 +4,7 @@ toc_include: false weight: 1 --- -{{< img src="../media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} +{{< img src="/media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} Crossplane is an open source Kubernetes add-on that transforms your cluster into diff --git a/content/v1.8/media/README.md b/content/v1.8/media/README.md deleted file mode 100644 index 7a11a3db..00000000 --- a/content/v1.8/media/README.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -tocHidden: true ---- - -# Crossplane Documentation Media - -The sources of the images in this file are: - -* `logo.svg` - https://github.com/crossplane/artwork/tree/420102/logo -* `composition-*.svg` - https://drive.google.com/drive/folders/1ld-XNglPQBT4ue9IBVuDs4HQRizr-5AY?usp=sharing \ No newline at end of file diff --git a/content/v1.8/media/banner.png b/content/v1.8/media/banner.png deleted file mode 100644 index 0a495e1d..00000000 Binary files a/content/v1.8/media/banner.png and /dev/null differ diff --git a/content/v1.8/media/composition-claims-and-xrs.svg b/content/v1.8/media/composition-claims-and-xrs.svg deleted file mode 100644 index d01cde26..00000000 --- a/content/v1.8/media/composition-claims-and-xrs.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/content/v1.8/media/composition-how-it-works.svg b/content/v1.8/media/composition-how-it-works.svg deleted file mode 100644 index 25ee6889..00000000 --- a/content/v1.8/media/composition-how-it-works.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/content/v1.8/media/composition-xrs-and-mrs.svg b/content/v1.8/media/composition-xrs-and-mrs.svg deleted file mode 100644 index fa2f0117..00000000 --- a/content/v1.8/media/composition-xrs-and-mrs.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/content/v1.8/media/logo.svg b/content/v1.8/media/logo.svg deleted file mode 100644 index 3af90369..00000000 --- a/content/v1.8/media/logo.svg +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/content/v1.9/_index.md b/content/v1.9/_index.md index 0fd78ca4..71f06750 100644 --- a/content/v1.9/_index.md +++ b/content/v1.9/_index.md @@ -5,7 +5,7 @@ cascade: version: "1.9" --- -{{< img src="../media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} +{{< img src="/media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} Crossplane is an open source Kubernetes add-on that transforms your cluster into diff --git a/content/v1.9/concepts/composition.md b/content/v1.9/concepts/composition.md index b0ba87b1..09d97b07 100644 --- a/content/v1.9/concepts/composition.md +++ b/content/v1.9/concepts/composition.md @@ -241,10 +241,10 @@ scenarios, including: take minutes to provision on-demand. [managed-resources]: {{}} -[xrs-and-mrs]: /v1.9/media/composition-xrs-and-mrs.svg +[xrs-and-mrs]: /media/composition-xrs-and-mrs.svg [xr-ref]: {{}} -[how-it-works]: /v1.9/media/composition-how-it-works.svg +[how-it-works]: /media/composition-how-it-works.svg [crd-docs]: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/ [provider-kubernetes]: https://marketplace.upbound.io/providers/crossplane-contrib/provider-kubernetes [provider-helm]: https://marketplace.upbound.io/providers/crossplane-contrib/provider-helm/ -[claims-and-xrs]: /v1.9/media/composition-claims-and-xrs.svg \ No newline at end of file +[claims-and-xrs]: /media/composition-claims-and-xrs.svg \ No newline at end of file diff --git a/content/v1.9/getting-started/_index.md b/content/v1.9/getting-started/_index.md index 31ecddde..93464d5b 100644 --- a/content/v1.9/getting-started/_index.md +++ b/content/v1.9/getting-started/_index.md @@ -3,7 +3,7 @@ title: "Getting Started" weight: 1 --- -{{< img src="../media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} +{{< img src="/media/banner.png" alt="Crossplane Popsicle Truck" size="large" >}} Crossplane is an open source Kubernetes add-on that transforms your cluster into diff --git a/content/v1.9/media/banner.png b/content/v1.9/media/banner.png deleted file mode 100644 index 0a495e1d..00000000 Binary files a/content/v1.9/media/banner.png and /dev/null differ diff --git a/content/v1.9/media/composition-claims-and-xrs.svg b/content/v1.9/media/composition-claims-and-xrs.svg deleted file mode 100644 index d01cde26..00000000 --- a/content/v1.9/media/composition-claims-and-xrs.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/content/v1.9/media/composition-how-it-works.svg b/content/v1.9/media/composition-how-it-works.svg deleted file mode 100644 index 25ee6889..00000000 --- a/content/v1.9/media/composition-how-it-works.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/content/v1.9/media/composition-xrs-and-mrs.svg b/content/v1.9/media/composition-xrs-and-mrs.svg deleted file mode 100644 index fa2f0117..00000000 --- a/content/v1.9/media/composition-xrs-and-mrs.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/content/v1.9/media/logo.svg b/content/v1.9/media/logo.svg deleted file mode 100644 index 3af90369..00000000 --- a/content/v1.9/media/logo.svg +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/themes/geekboot/layouts/shortcodes/img.html b/themes/geekboot/layouts/shortcodes/img.html index 26f74a37..14195b25 100644 --- a/themes/geekboot/layouts/shortcodes/img.html +++ b/themes/geekboot/layouts/shortcodes/img.html @@ -11,10 +11,14 @@ {{ $loading = "eager" }} {{ end }} -{{ $source := resources.Get (printf "content/%s%s" .Page.File.Dir (.Get "src")) }} +{{ $source := resources.Get (printf "content%s" (.Get "src")) }} {{ $customAlt := .Get "alt" }} {{ $customSize := .Get "size" | default "original" }} +{{ if not $source }} +{{ warnf "Unable to find image %s on page ./content/%s" (.Get "src") .Page.File }} +{{ end }} + {{ with $source }} {{ $original := (.Resize (printf "%dx%d webp q75" .Width .Height)).Permalink }} @@ -35,5 +39,3 @@ alt="{{ $customAlt }}" decoding="async">

{{ end }} - -