Commit 25cd2e97 authored by Jacek Lebioda's avatar Jacek Lebioda

Merge branch '36-change-image-format-to-jpg-for-safari' into 'develop'

fix: use jpg for safari, webp for others

See merge request !30
parents 497023c2 c6e58544
...@@ -22,9 +22,12 @@ layout: default ...@@ -22,9 +22,12 @@ layout: default
<div class="index-photo"> <div class="index-photo">
<picture> <picture>
<source media="(min-width: 200px)" srcset="{{ '/assets/cover_big.webp' | relative_url }}" alt="Elixir Luxembourg" /> <source media="(min-width: 200px)" srcset="{{ '/assets/cover_big.webp' | relative_url }}" type="image/webp" alt="Elixir Luxembourg" />
<source media="(max-width: 200px)" srcset="{{ '/assets/cover_small.webp' | relative_url }}" alt="Elixir Luxembourg" /> <source media="(max-width: 200px)" srcset="{{ '/assets/cover_small.webp' | relative_url }}" type="image/webp" alt="Elixir Luxembourg" />
<img src="{{ '/assets/cover_small.webp' | relative_url }}" alt="Elixir Luxembourg" />
<source media="(min-width: 200px)" srcset="{{ '/assets/cover_big.jpg' | relative_url }}" type="image/jpeg" alt="Elixir Luxembourg" />
<source media="(max-width: 200px)" srcset="{{ '/assets/cover_small.jpg' | relative_url }}" type="image/jpeg" alt="Elixir Luxembourg" />
<img src="{{ '/assets/cover_small.jpg' | relative_url }}" type="image/jpeg" alt="Elixir Luxembourg" />
</picture> </picture>
</div> </div>
</div> </div>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = "jekyll-elixir-theme" spec.name = "jekyll-elixir-theme"
spec.version = "0.9.18" spec.version = "0.9.19"
spec.authors = ["jacek.lebioda"] spec.authors = ["jacek.lebioda"]
spec.email = ["jacek.lebioda@uni.lu"] spec.email = ["jacek.lebioda@uni.lu"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment