Skip to content

Commit 3814c5e

Browse files
authored
Merge pull request #20 from OpenHub-Store/seo/cwv-fixes
2 parents d16ce6f + 0089197 commit 3814c5e

10 files changed

Lines changed: 19 additions & 6 deletions

File tree

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="container">
33
<div class="footer__inner">
44
<div class="footer__brand">
5-
<img src="https://raw.githubusercontent.com/OpenHub-Store/GitHub-Store/refs/heads/main/media-resources/app_icon.png" alt="" width="28" height="28" loading="lazy" decoding="async">
5+
<img src="/favicon-32x32.png" alt="" width="28" height="28" loading="lazy" decoding="async">
66
GitHub Store
77
</div>
88
<ul class="footer__links">

_includes/head.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,12 @@
8989
<meta name="twitter:creator" content="@{{ site.social.twitter }}">
9090

9191
<!-- Resource hints -->
92-
<link rel="preconnect" href="https://raw.githubusercontent.com" crossorigin>
9392
{%- if page.homepage %}
94-
<link rel="preload" as="image" href="https://raw.githubusercontent.com/OpenHub-Store/Github-Store/main/media-resources/screenshots/mobile/01.jpg" fetchpriority="high">
93+
<link rel="preload" as="image" type="image/webp"
94+
href="/assets/images/hero/01-640w.webp"
95+
imagesrcset="/assets/images/hero/01-320w.webp 320w, /assets/images/hero/01-640w.webp 640w, /assets/images/hero/01-960w.webp 960w"
96+
imagesizes="(max-width: 640px) 50vw, 280px"
97+
fetchpriority="high">
9598
{%- endif %}
9699

97100
<!-- CSS (render-blocking, with build-version cache-bust) -->
@@ -169,7 +172,7 @@
169172
"downloadUrl": "https://github.com/OpenHub-Store/GitHub-Store/releases",
170173
"license": "https://www.apache.org/licenses/LICENSE-2.0",
171174
"url": "{{ site.url }}",
172-
"logo": "{{ site.url }}/android-chrome-512x512.png",
175+
"image": "{{ site.url }}/android-chrome-512x512.png",
173176
"screenshot": [
174177
"https://raw.githubusercontent.com/OpenHub-Store/Github-Store/main/media-resources/screenshots/mobile/01.jpg",
175178
"https://raw.githubusercontent.com/OpenHub-Store/Github-Store/main/media-resources/screenshots/mobile/02.jpg",

_includes/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<header class="top-bar" id="topBar">
22
<div class="top-bar__inner">
33
<a href="/" class="top-bar__brand">
4-
<img src="https://raw.githubusercontent.com/OpenHub-Store/GitHub-Store/refs/heads/main/media-resources/app_icon.png" alt="GitHub Store logo" width="36" height="36" decoding="async">
4+
<img src="/favicon-32x32.png" srcset="/favicon-32x32.png 1x, /apple-touch-icon.png 2x" alt="GitHub Store logo" width="36" height="36" decoding="async">
55
<span>GitHub Store</span>
66
</a>
77
<div class="top-bar__actions">

assets/images/hero/01-320w.jpg

28.4 KB
Loading

assets/images/hero/01-320w.webp

14.1 KB
Loading

assets/images/hero/01-640w.jpg

69.3 KB
Loading

assets/images/hero/01-640w.webp

30.6 KB
Loading

assets/images/hero/01-960w.jpg

112 KB
Loading

assets/images/hero/01-960w.webp

44.7 KB
Loading

index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,17 @@ <h1 class="hero__title">The app store for<br><em>GitHub releases</em></h1>
6969
</div>
7070
<div class="hero__phone">
7171
<div class="hero__phone-frame">
72-
<img src="https://raw.githubusercontent.com/OpenHub-Store/Github-Store/main/media-resources/screenshots/mobile/01.jpg" alt="GitHub Store mobile app discover screen with trending GitHub release apps" width="320" height="640" loading="eager" fetchpriority="high" decoding="async">
72+
<picture>
73+
<source type="image/webp"
74+
srcset="/assets/images/hero/01-320w.webp 320w, /assets/images/hero/01-640w.webp 640w, /assets/images/hero/01-960w.webp 960w"
75+
sizes="(max-width: 640px) 50vw, 280px">
76+
<img src="/assets/images/hero/01-640w.jpg"
77+
srcset="/assets/images/hero/01-320w.jpg 320w, /assets/images/hero/01-640w.jpg 640w, /assets/images/hero/01-960w.jpg 960w"
78+
sizes="(max-width: 640px) 50vw, 280px"
79+
alt="GitHub Store mobile app discover screen with trending GitHub release apps"
80+
width="320" height="694"
81+
loading="eager" fetchpriority="high" decoding="async">
82+
</picture>
7383
</div>
7484
</div>
7585
</div>

0 commit comments

Comments
 (0)