File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[
22 {
3- "name " : " Vercel" ,
3+ "label " : " Vercel" ,
44 "icon" : " vercel" ,
55 "link" : " /guides/hosting/vercel/"
66 },
77 {
8- "name " : " Netlify" ,
8+ "label " : " Netlify" ,
99 "icon" : " netlify" ,
1010 "link" : " /guides/hosting/netlify/"
1111 },
1212 {
13- "name " : " NodeJS" ,
13+ "label " : " NodeJS" ,
1414 "icon" : " nodejs" ,
1515 "link" : " /guides/hosting/#self-hosting"
1616 },
1717 {
18- "name" : " GitHub" ,
18+ "label" : " AWS" ,
19+ "icon" : " aws" ,
20+ "link" : " /guides/hosting/aws/"
21+ },
22+ {
23+ "label" : " GitHub" ,
1924 "icon" : " github" ,
2025 "link" : " /guides/hosting/github/"
2126 }
Original file line number Diff line number Diff line change 11import platforms from "./platforms.json" with { type : "json" } ;
2+ import awsLogo from "../../assets/aws.svg?type=raw" ;
23import githubLogo from "../../assets/github.svg?type=raw" ;
34import netlifyLogo from "../../assets/netlify.svg?type=raw" ;
45import nodejsLogo from "../../assets/nodejs.svg?type=raw" ;
56import vercelLogo from "../../assets/vercel.svg?type=raw" ;
67import styles from "./run-anywhere.module.css" ;
78
89const platformImageMapper = {
10+ aws : awsLogo ,
911 github : githubLogo ,
1012 netlify : netlifyLogo ,
1113 nodejs : nodejsLogo ,
@@ -22,15 +24,15 @@ export default class RunAnywhere extends HTMLElement {
2224 <div class="${ styles . platformsContainer } ">
2325 ${ platforms
2426 . map ( ( platform ) => {
25- const { name , icon, link } = platform ;
27+ const { label , icon, link } = platform ;
2628
2729 return `
2830 <div class="${ styles . platformBox } ">
2931 <div class="${ styles . iconBox } ">
3032 ${ platformImageMapper [ icon ] }
3133 </div>
3234
33- <a class="${ styles . iconLink } " href="${ link } ">${ name } </a>
35+ <a class="${ styles . iconLink } " href="${ link } ">${ label } </a>
3436 </div>
3537 ` ;
3638 } )
Original file line number Diff line number Diff line change @@ -207,14 +207,14 @@ Any Greenwood [supported frontmatter](/docs/resources/markdown/#frontmatter) can
207207 return {
208208 layout: " user" ,
209209 collection: " header" ,
210- order: 1 ,
211210 title: ` The ${ route} page` ,
212211 imports: [
213212 " /components/user.js" ,
214213 " /components/otherItem.js type=module"
215214 ],
215+ // any custom data
216216 data: {
217- /* ... */
217+ order : 1 ,
218218 },
219219 };
220220 }
You can’t perform that action at this time.
0 commit comments