-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
author: Mark Dumay | ||
title: Images locales et distantes | ||
date: 2024-05-19 | ||
description: Inclure des images réactives provenant de sources locales et de certains fournisseurs de CDN d'images. | ||
tags: ["blog"] | ||
thumbnail: | ||
url: https://assets.imgix.net/examples/bluehat.jpg | ||
--- | ||
|
||
## Cloudinary | ||
|
||
À titre d'exemple, le shortcode suivant affiche une image avec des coins arrondis et un ratio d'aspect de 21x9. | ||
|
||
<!-- markdownlint-disable MD037 --> | ||
{{< example lang="hugo" >}} | ||
{{</* image src="https://res.cloudinary.com/demo/dog.webp" | ||
ratio="21x9" caption="Image Cloudinary" class="rounded" plain=true */>}} | ||
{{< /example >}} | ||
<!-- markdownlint-enable MD037 --> | ||
|
||
## ImageKit.io | ||
|
||
À titre d'exemple, le shortcode suivant affiche une image avec des coins arrondis et un ratio d'aspect de 21x9. | ||
|
||
<!-- markdownlint-disable MD037 --> | ||
{{< example lang="hugo" >}} | ||
{{</* image src="https://ik.imagekit.io/demo/default-image.jpg" | ||
ratio="21x9" caption="Image ImageKit.io" class="rounded" anchor="Center" */>}} | ||
{{< /example >}} | ||
<!-- markdownlint-enable MD037 --> | ||
|
||
## Imgix | ||
|
||
À titre d'exemple, le shortcode suivant affiche une image avec des coins arrondis et un ratio d'aspect de 21x9. | ||
|
||
<!-- markdownlint-disable MD037 --> | ||
{{< example lang="hugo" >}} | ||
{{</* image src="https://assets.imgix.net/examples/bluehat.jpg" | ||
ratio="21x9" caption="Image imgix" class="rounded" anchor="Top" */>}} | ||
{{< /example >}} | ||
<!-- markdownlint-enable MD037 --> |