astro/examples
Ian Bull 55f007f30a
Support Prism in the blog template example (#2622)
The Prism syntax highlighter failed to render properly when Astro was
initialized with the blog template. This was because the Prism CSS
conflicted with the default blog template.

This change-set removes the Viewport Width from the `pre` transform as
this property conflicted with the prism CSS. This change-set also
includes Prism in the Blog Post layout and adds a small javascript
example to the sample post.
2022-03-10 11:49:52 -06:00
..
blog Support Prism in the blog template example (#2622) 2022-03-10 11:49:52 -06:00
blog-multiple-authors [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
component [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
docs [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
env-vars [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
framework-alpine [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
framework-lit [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
framework-multiple [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
framework-preact [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
framework-react [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
framework-solid [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
framework-svelte [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
framework-vue [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
minimal [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
non-html-pages [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
portfolio [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
portfolio-svelte fix component usage in portfolio-svelte 404 page (#2549) 2022-03-10 09:36:11 -06:00
ssr [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
starter [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
subpath [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
with-markdown [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
with-markdown-plugins [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
with-markdown-shiki [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
with-nanostores [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
with-tailwindcss [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
with-vite-plugin-pwa [ci] release (next) (#2734) 2022-03-09 19:01:26 -06:00
README.md Docs: npm@7 requires an extra -- for arguments passed to the command, per @natemoo-re's description. (#786) 2021-07-20 20:06:11 -05:00

Astro Examples Library

The easiest way to check out one of these examples on your machine is by running this command in an empty directory:

npm init astro -- --template [EXAMPLE_NAME]

Community Examples

Visit awesome-astro for a full list of community examples. You can use npm init astro to check out any community examples:

npm init astro -- --template [GITHUB_USER]/[REPO_NAME]

Paths to examples nested inside of a repo are also supported:

npm init astro -- --template [GITHUB_USER]/[REPO_NAME]/path/to/example