Browse Source

only publish the page resources that are actually used

Hugo used to publish every file of the page bundles, including the
source files (xcf, heic, raw videos, scripts, etc.), twice because of
the english articles copied in the french site. The site weighed 503 MB.

With publishResources disabled, only the resources referenced through
.Permalink / .RelPermalink are published: 95 files are no longer
published and the site now weighs 165 MB.

The few resources referenced by raw markdown links or by the figure
shortcode (which does not resolve page resources) now use the
attachedFileLink and attachedFigure shortcodes.

Note: Hugo 0.121 uses the _build front matter key (renamed build later).

Refs #11

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YNHsWYTXPThURz6TbVS1j3
master
Nicolas Massé 1 month ago
parent
commit
6a61edc1ba
  1. 7
      config.yaml
  2. 2
      content/english/blog/configure-redhat-sso-3scale-cli/index.md
  3. 2
      content/english/blog/install-openwrt-raspberry-pi/index.md
  4. 2
      content/english/speaking/red-hat-open-demo-build-multi-architecture-ci-cd-pipelines-to-run-your-apps-in-the-cloud-and-at-the-edge/index.md
  5. 2
      content/french/speaking/devoxx-france-2025/index.md
  6. 2
      content/french/speaking/red-hat-open-tour-lyon-2025/index.md

7
config.yaml

@ -79,3 +79,10 @@ params:
enablePlausible: false
images:
- /images/avatar-2022-12.webp
# Only publish the page resources that are actually used (images, attached
# files, etc.) and not the source files that sit next to them (xcf, heic,
# raw videos, etc.).
cascade:
_build:
publishResources: false

2
content/english/blog/configure-redhat-sso-3scale-cli/index.md

@ -98,7 +98,7 @@ You can use the following URL for the **OpenID Connect Issuer** (replace $SSO_HO
https://zync:s3cr3t@$SSO_HOSTNAME/auth/realms/3scale
```
{{< figure src="openid-connect-issuer.png" title="OpenID Connect Issuer settings in the 3scale Admin Portal." >}}
{{< attachedFigure src="openid-connect-issuer.png" title="OpenID Connect Issuer settings in the 3scale Admin Portal." >}}
Or when [deploying an API in 3scale with the 3scale toolbox](https://developers.redhat.com/blog/2019/07/29/3scale-toolbox-deploy-an-api-from-the-cli/), you can use:

2
content/english/blog/install-openwrt-raspberry-pi/index.md

@ -72,7 +72,7 @@ screen /dev/ttyUSB0 115200
You then need to connect the VIN, GND, TXD and RXD wires to the correct GPIO pins of your Raspberry PI.
{{< figure src="uart-pins.jpeg" title="The UART Pins of the Raspberry PI 3" >}}
{{< attachedFigure src="uart-pins.jpeg" title="The UART Pins of the Raspberry PI 3" >}}
Power-on your Raspberry PI, wait a couple seconds and press enter to display the OpenWRT prompt.

2
content/english/speaking/red-hat-open-demo-build-multi-architecture-ci-cd-pipelines-to-run-your-apps-in-the-cloud-and-at-the-edge/index.md

@ -55,6 +55,6 @@ Key Highlights from the Demo:
This demo has been designed for DevOps professionals, cloud architects, and developers looking to leverage OpenShift and AWS in multi-architecture container image creation.
The session provided them with both a high-level understanding and practical skills to implement and manage these capabilities in their environments.
If you have not been able to attend the live session, I invite you to [watch the replay](https://events.redhat.com/profile/form/index.cfm?PKformID=0x11759490001) and [download the slides](slides.pdf)!
If you have not been able to attend the live session, I invite you to [watch the replay](https://events.redhat.com/profile/form/index.cfm?PKformID=0x11759490001) and [download the slides]({{< attachedFileLink src="slides.pdf" >}})!
If you are ready to dive deeper, have a look at the article I wrote on this subject: {{< internalLink path="/blog/build-multi-architecture-container-images-with-kubernetes-buildah-tekton-aws/index.md" >}}!

2
content/french/speaking/devoxx-france-2025/index.md

@ -47,4 +47,4 @@ Un succès que j’ai eu un immense plaisir à partager avec une salle bien remp
## Ressources
- [Le code source des pipelines Tekton multi-architecture](https://github.com/nmasse-itix/tekton-pipeline-multiarch/tree/devoxx-france-2025)
- [Les supports de présentation](slides.pdf)
- [Les supports de présentation]({{< attachedFileLink src="slides.pdf" >}})

2
content/french/speaking/red-hat-open-tour-lyon-2025/index.md

@ -31,4 +31,4 @@ Le 20 Mai 2025, j'ai participé à l'événement [Red Hat Open Tour](https://eve
## Ressources
- [Énoncé de l'atelier](https://open-tour-2025.netlify.app/fr/)
- [Supports de présentation](slides.pdf)
- [Supports de présentation]({{< attachedFileLink src="slides.pdf" >}})

Loading…
Cancel
Save