Skip to content

Commit f575e61

Browse files
committed
Src Set
1 parent c4d77f8 commit f575e61

File tree

12 files changed

+19
-19
lines changed

12 files changed

+19
-19
lines changed

layouts/about-us/about-us.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@
132132
<main id="main-content" role="main">
133133
<div class="MainButtonParent">
134134
<a href="/" aria-label="CodeFryDev Homepage">
135-
<img style="align-items: center;" src="/images/IconCodefrydev.svg" alt="CodeFryDev logo" height="96" width="96">
135+
<img style="align-items: center;" src="/images/IconCodefrydev.svg" srcset="/images/IconCodefrydev.svg" alt="CodeFryDev logo" height="96" width="96">
136136
</a>
137137
</div>
138138

139139
<div class="about-us-container">
140140
<div class="about-us-header">
141-
<img src="/images/IconCodefrydev.svg" alt="CodeFryDev logo" width="120" height="120" style="margin-bottom: 1.5rem;">
141+
<img src="/images/IconCodefrydev.svg" srcset="/images/IconCodefrydev.svg" alt="CodeFryDev logo" width="120" height="120" style="margin-bottom: 1.5rem;">
142142
<h1>About us</h1>
143143
</div>
144144

layouts/about/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346
<main id="main-content" role="main">
347347
<div class="MainButtonParent">
348348
<a href="/" aria-label="CodeFryDev Homepage">
349-
<img style="align-items: center;" src="/images/IconCodefrydev.svg" alt="CodeFryDev logo" height="96" width="96">
349+
<img style="align-items: center;" src="/images/IconCodefrydev.svg" srcset="/images/IconCodefrydev.svg" alt="CodeFryDev logo" height="96" width="96">
350350
</a>
351351
</div>
352352

layouts/about/users/list.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
<body>
184184
<main>
185185
<div class="MainButtonParent">
186-
<img style="align-items: center;" src="/images/IconCodefrydev.svg" alt="Codefrydev Logo" height="96px">
186+
<img style="align-items: center;" src="/images/IconCodefrydev.svg" srcset="/images/IconCodefrydev.svg" alt="Codefrydev Logo" height="96px">
187187
</div>
188188

189189
<div class="users-container">
@@ -197,7 +197,7 @@ <h1>{{ .Title }}</h1>
197197
<li class="member-card-wrapper">
198198
<a href="{{ .RelPermalink }}" class="member-card hapticButton">
199199
<div class="profile-img-wrapper">
200-
<img src="{{ .Params.listProfile_image }}" alt="{{ .Title }}" class="profile-img" loading="lazy">
200+
<img src="{{ .Params.listProfile_image }}" srcset="{{ .Params.listProfile_image }}" alt="{{ .Title }}" class="profile-img" loading="lazy">
201201
</div>
202202
<h2 class="member-name">{{ .Title }}</h2>
203203
<p class="member-subtitle">{{ .Params.subtitle }}</p>

layouts/about/users/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<body>
2929
<div class="container">
30-
<img class="profile-img" src="{{ .Params.profile_image }}" alt="Profile Picture">
30+
<img class="profile-img" src="{{ .Params.profile_image }}" srcset="{{ .Params.profile_image }}" alt="Profile Picture">
3131
<h1>{{ .Title }}</h1>
3232
<h2>{{ .Params.subtitle }}</h2>
3333

layouts/ai/ai.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<header class="page-header" role="banner">
2020
<a href="/" aria-label="CodeFryDev Homepage">
21-
<img fetchpriority="high" src="/images/IconCodefrydev.svg" alt="CodeFryDev logo - Tools, Games, Art, Animation" height="96" width="96">
21+
<img fetchpriority="high" src="/images/IconCodefrydev.svg" srcset="/images/IconCodefrydev.svg" alt="CodeFryDev logo - Tools, Games, Art, Animation" height="96" width="96">
2222
</a>
2323
<h1>CodeFryDev<sup style="font-size: small; font-weight: bold;"> Alpha</sup></h1>
2424
<p class="tagline">Tools, Games, Art, Animation</p>
@@ -35,7 +35,7 @@ <h2 class="category-title">AI Tools</h2>
3535
class="neumorphic-button hapticButton"
3636
aria-label="{{ .name }} - AI tool"
3737
{{ if $isExternal }}target="_blank" rel="noopener noreferrer"{{ end }}>
38-
<img src="/images/ai/{{ .icon }}.svg" alt="{{ .name }} icon" class="button-icon" loading="lazy">
38+
<img src="/images/ai/{{ .icon }}.svg" srcset="/images/ai/{{ .icon }}.svg" alt="{{ .name }} icon" class="button-icon" loading="lazy">
3939
<span>{{ .name }}</span>
4040
</a>
4141
{{ end }}

layouts/designlab/designlab.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<header class="page-header" role="banner">
2020
<a href="/" aria-label="CodeFryDev Homepage">
21-
<img fetchpriority="high" src="/images/IconCodefrydev.svg" alt="CodeFryDev logo - Tools, Games, Art, Animation" height="96" width="96">
21+
<img fetchpriority="high" src="/images/IconCodefrydev.svg" srcset="/images/IconCodefrydev.svg" alt="CodeFryDev logo - Tools, Games, Art, Animation" height="96" width="96">
2222
</a>
2323
<h1>CodeFryDev<sup style="font-size: small; font-weight: bold;"> Alpha</sup></h1>
2424
<p class="tagline">Tools, Games, Art, Animation</p>
@@ -35,7 +35,7 @@ <h2 class="category-title">Design Lab</h2>
3535
class="neumorphic-button hapticButton"
3636
aria-label="{{ .name }} - Design tool"
3737
{{ if $isExternal }}target="_blank" rel="noopener noreferrer"{{ end }}>
38-
<img src="/images/designlab/{{ .icon }}.svg" alt="{{ .name }} design tool icon" class="button-icon" loading="lazy">
38+
<img src="/images/designlab/{{ .icon }}.svg" srcset="/images/designlab/{{ .icon }}.svg" alt="{{ .name }} design tool icon" class="button-icon" loading="lazy">
3939
<span>{{ .name }}</span>
4040
</a>
4141
{{ end }}

layouts/games/games.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<header class="page-header" role="banner">
2020
<a href="/" aria-label="CodeFryDev Homepage">
21-
<img fetchpriority="high" src="/images/IconCodefrydev.svg" alt="CodeFryDev logo - Tools, Games, Art, Animation" height="96" width="96">
21+
<img fetchpriority="high" src="/images/IconCodefrydev.svg" srcset="/images/IconCodefrydev.svg" alt="CodeFryDev logo - Tools, Games, Art, Animation" height="96" width="96">
2222
</a>
2323
<h1>CodeFryDev<sup style="font-size: small; font-weight: bold;"> Alpha</sup></h1>
2424
<p class="tagline">Tools, Games, Art, Animation</p>
@@ -35,7 +35,7 @@ <h2 class="category-title">Games</h2>
3535
class="neumorphic-button hapticButton"
3636
aria-label="{{ .name }} - Play game"
3737
{{ if $isExternal }}target="_blank" rel="noopener noreferrer"{{ end }}>
38-
<img src="/images/games/{{ .icon }}.svg" alt="{{ .name }} game icon" class="button-icon" loading="lazy">
38+
<img src="/images/games/{{ .icon }}.svg" srcset="/images/games/{{ .icon }}.svg" alt="{{ .name }} game icon" class="button-icon" loading="lazy">
3939
<span>{{ .name }}</span>
4040
</a>
4141
{{ end }}

layouts/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<header class="page-header" role="banner">
2020
<a href="/" aria-label="CodeFryDev Homepage">
21-
<img fetchpriority="high" src="images/IconCodefrydev.svg" alt="CodeFryDev logo - Tools, Games, Art, Animation" height="96" width="96">
21+
<img fetchpriority="high" src="images/IconCodefrydev.svg" srcset="images/IconCodefrydev.svg" alt="CodeFryDev logo - Tools, Games, Art, Animation" height="96" width="96">
2222
</a>
2323
<h1>CodeFryDev<sup style="font-size: small; font-weight: bold;"> Alpha</sup></h1>
2424
<p class="tagline">Tools, Games, Art, Animation</p>
@@ -36,7 +36,7 @@ <h2 class="category-title">{{ .name }}</h2>
3636
class="neumorphic-button hapticButton"
3737
aria-label="{{ .name }} - {{ .name | lower }} tool"
3838
{{ if $isExternal }}target="_blank" rel="noopener noreferrer"{{ end }}>
39-
<img src="images/home/{{ .icon }}.svg" alt="{{ .name }} icon" class="button-icon" loading="lazy">
39+
<img src="images/home/{{ .icon }}.svg" srcset="images/home/{{ .icon }}.svg" alt="{{ .name }} icon" class="button-icon" loading="lazy">
4040
<span>{{ .name }}</span>
4141
</a>
4242
{{ end }}

layouts/partials/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="footer-brand-section">
55
<div class="footer-brand">
66
<a href="/" aria-label="CodeFryDev Homepage">
7-
<img src="/images/IconCodefrydev.svg" alt="CodeFryDev Logo" width="48" height="48" loading="lazy" class="footer-logo">
7+
<img src="/images/IconCodefrydev.svg" srcset="/images/IconCodefrydev.svg" alt="CodeFryDev Logo" width="48" height="48" loading="lazy" class="footer-logo">
88
</a>
99
<h2 class="footer-brand-title">{{ .Site.Title }}</h2>
1010
</div>

layouts/partials/smart-link.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{{ if $rel }}rel="{{ $rel }}"{{ end }}
2121
aria-label="{{ $ariaLabel }}">
2222
{{- if .icon -}}
23-
<img src="{{ .icon }}" alt="{{ $name }} icon" class="button-icon" loading="lazy">
23+
<img src="{{ .icon }}" srcset="{{ .icon }}" alt="{{ $name }} icon" class="button-icon" loading="lazy">
2424
{{- end -}}
2525
{{- if .content -}}
2626
{{ .content }}

0 commit comments

Comments
 (0)