Skip to content

Commit

Permalink
improved social feed images
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-dolf committed Dec 29, 2022
1 parent d6b4ada commit 424ecd5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions _data/picture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ media-queries:
desktop: 'min-width: 1024px'

presets:
social:
formats: [webp]
widths: [420]
format_quality:
png: 85
jpg: 85
webp: 85
dimension_attributes: true
hero:
formats: [webp]
widths: [1600]
Expand Down
2 changes: 1 addition & 1 deletion _includes/components/image.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{%
picture
picture social
{{ include.link }}
--alt {{ include.alt }}
%}
2 changes: 1 addition & 1 deletion _includes/components/social.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="connect">
<h4>Connect with us</h4>
<h3>Connect with us</h3>
<p class="body-1">[email protected]</p>
<div class="social-container">
<a href="https://www.facebook.com/CannaEquityIL/" aria-label="Facebook" target="_blank">
Expand Down
1 change: 1 addition & 0 deletions _sass/sections/_instagram-feed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

img {
width: 100%;
height: auto;
}
}
}

0 comments on commit 424ecd5

Please sign in to comment.