The source code for astro.build, built with Astro.
The themes catalog is based on the themes content collection. Optimized images should be saved to the collection's _images directory, ideally as format with a {image}.webp
file at 800px wide and {image}@2x.webp
at 1600px wide.
TODO: Themes use metadata from GitHub, specifically the stars count for public theme repos. This is updated manually for now but a nightly job will be added to take care of this automatically.
The showcase doesn't depend on any data from GitHub or NPM. All showcase data is pulled from the content collection. Similar to themes, optimized images should be saved to the collection's _images directory, ideally as format with a {image}.webp
file at 800px wide and {image}@2x.webp
at 1600px wide.
The integrations catalog also used a content collection to track known Astro integrations.
TODO: A nightly or weekly script will also be added here to find new integrations published to NPM.
The blog collection is setup to support MDX blog posts with all images being pulled from the collection's _images directory. Images should be a webp
format of a reasonable width, something in the 800-1600px range is ideal.
Blog post cover and social images are set as frontmatter properties and should point reference the _images
directory, ex: coverImage: "/src/content/blog/_images/post-1/cover.webp"
.