File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @rocket/launch ' : patch
3+ ---
4+
5+ Replace Layout Options ` logoSrc ` and ` logoAlt ` strings with a ` logoSmall ` TemplateResult
6+
7+ ``` diff
8+ - logoSrc: '/icon.svg',
9+ - logoAlt: 'Rocket Logo',
10+ + logoSmall: html`
11+ + <img src="resolve:@rocket/launch/assets/rocket-logo-light.svg" alt="Rocket" width="250" height="67.87" />
12+ + `,
13+ ```
Original file line number Diff line number Diff line change @@ -45,8 +45,17 @@ export class LayoutMain extends Layout {
4545 headerDarkBackground : false ,
4646 dsdPending : true ,
4747 siteName : 'Rocket' ,
48- logoSrc : '/icon.svg' ,
49- logoAlt : 'Rocket Logo' ,
48+ logoSmall : html `
49+ < picture >
50+ <!-- <source srcset="resolve:@rocket/launch/assets/rocket-logo-dark.svg" media="(prefers-color-scheme: dark)"> -->
51+ < img
52+ src ="resolve:@rocket/launch/assets/rocket-logo-light.svg "
53+ alt ="Rocket Logo "
54+ width ="250 "
55+ height ="67.87 "
56+ />
57+ </ picture >
58+ ` ,
5059 gitSiteUrl : 'https://github.com/modernweb-dev/rocket' ,
5160 gitBranch : 'next' ,
5261 description : 'A static site generator for modern web development' ,
@@ -147,7 +156,7 @@ export class LayoutMain extends Layout {
147156
148157 header__10 : html `
149158 < a class ="logo-link " href ="/ " slot ="logo ">
150- < img src =" /icon.svg " alt =" ${ this . options . logoAlt } " />
159+ ${ this . options . logoSmall }
151160 < span > ${ this . options . siteName } </ span >
152161 </ a >
153162 ` ,
@@ -171,7 +180,7 @@ export class LayoutMain extends Layout {
171180
172181 drawer__10 : html `
173182 < a class ="logo-link " href ="/ ">
174- < img src =" ${ this . options . logoSrc } " alt =" ${ this . options . logoAlt } " />
183+ ${ this . options . logoSmall }
175184 < span > ${ this . options . siteName } </ span >
176185 </ a >
177186 ` ,
Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ export interface LayoutSidebarOptions extends LayoutOptions {
77 [ key : TemplateValueKey < 'drawer' > ] : TemplateValue ;
88
99 siteName : string ;
10- logoSrc : string ;
11- logoAlt : string ;
10+ logoSmall : TemplateValue ;
1211 gitSiteUrl : string ;
1312 gitBranch : string ;
1413 description : string ;
Original file line number Diff line number Diff line change @@ -19,6 +19,17 @@ export const layoutData = {
1919 // head__42: html` <link rel="stylesheet" href="resolve:root/src/assets/styles.css" /> `,
2020 header__40 : search ,
2121 drawer__30 : search ,
22+ logoSmall : html `
23+ < picture >
24+ <!-- <source srcset="resolve:#src/assets/rocket-logo-dark.svg" media="(prefers-color-scheme: dark)"> -->
25+ < img
26+ src ="resolve:#src/assets/rocket-logo-light.svg "
27+ alt ="Rocket Logo "
28+ width ="250 "
29+ height ="67.87 "
30+ />
31+ </ picture >
32+ ` ,
2233 footerMenu : [
2334 {
2435 name : 'Discover' ,
You can’t perform that action at this time.
0 commit comments