Skip to content

Commit 51aa0e7

Browse files
committed
Use fit clip for images
1 parent ccdffa3 commit 51aa0e7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

_basic-syntax/images.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ To add an image, add an exclamation mark (`!`), followed by alt text in brackets
2323

2424
The rendered output looks like this:
2525

26-
<img srcset="{{ "/assets/images/san-juan-mountains.jpg" | imgix_url: auto: 'format', w: 825 }} 1x,
27-
{{ "/assets/images/san-juan-mountains.jpg" | imgix_url: auto: 'format', q: 40, w: 825, dpr: 2 }} 2x,
28-
{{ "/assets/images/san-juan-mountains.jpg" | imgix_url: auto: 'format', q: 20, w: 825, dpr: 3 }} 3x"
26+
<img srcset="{{ "/assets/images/san-juan-mountains.jpg" | imgix_url: auto: 'format', fit: 'clip', w: 825 }} 1x,
27+
{{ "/assets/images/san-juan-mountains.jpg" | imgix_url: auto: 'format', fit: 'clip', q: 40, w: 825, dpr: 2 }} 2x,
28+
{{ "/assets/images/san-juan-mountains.jpg" | imgix_url: auto: 'format', fit: 'clip', q: 20, w: 825, dpr: 3 }} 3x"
2929
src="{{ "/assets/images/san-juan-mountains.jpg" | imgix_url }}" class="img-fluid" alt="The San Juan Mountains are beautiful!" title="San Juan Mountains">
3030

3131
### Linking Images
@@ -39,8 +39,8 @@ To add a link to an image, enclose the Markdown for the image in brackets, and t
3939
The rendered output looks like this:
4040

4141
<a href="https://www.flickr.com/photos/beaurogers/31833779864/in/photolist-Qv3rFw-34mt9F-a9Cmfy-5Ha3Zi-9msKdv-o3hgjr-hWpUte-4WMsJ1-KUQ8N-deshUb-vssBD-6CQci6-8AFCiD-zsJWT-nNfsgB-dPDwZJ-bn9JGn-5HtSXY-6CUhAL-a4UTXB-ugPum-KUPSo-fBLNm-6CUmpy-4WMsc9-8a7D3T-83KJev-6CQ2bK-nNusHJ-a78rQH-nw3NvT-7aq2qf-8wwBso-3nNceh-ugSKP-4mh4kh-bbeeqH-a7biME-q3PtTf-brFpgb-cg38zw-bXMZc-nJPELD-f58Lmo-bXMYG-bz8AAi-bxNtNT-bXMYi-bXMY6-bXMYv" class="no-underline">
42-
<img srcset="{{ "/assets/images/shiprock.jpg" | imgix_url: auto: 'format', w: 825 }} 1x,
43-
{{ "/assets/images/shiprock.jpg" | imgix_url: auto: 'format', q: 40, w: 825, dpr: 2 }} 2x,
44-
{{ "/assets/images/shiprock.jpg" | imgix_url: auto: 'format', q: 20, w: 825, dpr: 3 }} 3x"
42+
<img srcset="{{ "/assets/images/shiprock.jpg" | imgix_url: auto: 'format', fit: 'clip', w: 825 }} 1x,
43+
{{ "/assets/images/shiprock.jpg" | imgix_url: auto: 'format', fit: 'clip', q: 40, w: 825, dpr: 2 }} 2x,
44+
{{ "/assets/images/shiprock.jpg" | imgix_url: auto: 'format', fit: 'clip', q: 20, w: 825, dpr: 3 }} 3x"
4545
src="{{ "/assets/images/shiprock.jpg" | imgix_url }}" class="img-fluid" alt="An old rock in the desert" title="Shiprock, New Mexico by Beau Rogers">
4646
</a>

0 commit comments

Comments
 (0)