Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Gitlab will go into maintenance Friday 3rd February from 9:00 to 10:00
Open sidebar
elixir
jekyll-elixir-theme
Commits
c6e58544
Commit
c6e58544
authored
Mar 03, 2020
by
Jacek Lebioda
Browse files
fix: use jpg for safari, webp for others
parent
497023c2
Changes
4
Hide whitespace changes
Inline
Side-by-side
_layouts/index.html
View file @
c6e58544
...
...
@@ -22,9 +22,12 @@ layout: default
<div
class=
"index-photo"
>
<picture>
<source
media=
"(min-width: 200px)"
srcset=
"{{ '/assets/cover_big.webp' | relative_url }}"
alt=
"Elixir Luxembourg"
/>
<source
media=
"(max-width: 200px)"
srcset=
"{{ '/assets/cover_small.webp' | relative_url }}"
alt=
"Elixir Luxembourg"
/>
<img
src=
"{{ '/assets/cover_small.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 }}"
type=
"image/webp"
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>
</div>
</div>
...
...
assets/cover_big.jpg
0 → 100644
View file @
c6e58544
125 KB
assets/cover_small.jpg
0 → 100644
View file @
c6e58544
47.2 KB
elixir-theme.gemspec
View file @
c6e58544
...
...
@@ -2,7 +2,7 @@
Gem
::
Specification
.
new
do
|
spec
|
spec
.
name
=
"jekyll-elixir-theme"
spec
.
version
=
"0.9.1
8
"
spec
.
version
=
"0.9.1
9
"
spec
.
authors
=
[
"jacek.lebioda"
]
spec
.
email
=
[
"jacek.lebioda@uni.lu"
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment