From 14cfd204de13900daa9bf23de1dda0b76879dadb Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Fri, 28 May 2021 12:54:39 -0400 Subject: [PATCH] Update Starter template to use the Markdown component (#270) Uses the Markdown component in the Tour component. --- .../src/templates/starter/astro.config.mjs | 2 +- .../starter/src/components/Tour.astro | 42 +++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/create-astro/src/templates/starter/astro.config.mjs b/packages/create-astro/src/templates/starter/astro.config.mjs index 0ff0e5abd..c005c5f07 100644 --- a/packages/create-astro/src/templates/starter/astro.config.mjs +++ b/packages/create-astro/src/templates/starter/astro.config.mjs @@ -7,7 +7,7 @@ export default { // '.jsx': 'react', // Set this to "preact" or "react" to determine what *.jsx files should load }, buildOptions: { - // site: '', // Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs. + // site: 'http://example.com', // Your public domain, e.g.: https://my-site.dev/. Used to generate sitemaps and canonical URLs. // sitemap: true, // Generate sitemap (set to "false" to disable) }, devOptions: { diff --git a/packages/create-astro/src/templates/starter/src/components/Tour.astro b/packages/create-astro/src/templates/starter/src/components/Tour.astro index 7452ddfb9..2e2d9ea12 100644 --- a/packages/create-astro/src/templates/starter/src/components/Tour.astro +++ b/packages/create-astro/src/templates/starter/src/components/Tour.astro @@ -4,31 +4,31 @@
-

🚀 Project Structure

-

Inside of your Astro project, you'll see the following folders and files:

+ + ## 🚀 Project Structure -
/
-├── public/
-│   ├── robots.txt
-│   └── favicon.ico
-├── src/
-│   ├── components/
-│   │   └── Tour.astro
-│   └── pages/
-│       └── index.astro
-└── package.json
-        
+ Inside of your Astro project, you'll see the following folders and files: -

- Astro looks for .astro or .md files in the src/pages/ directory. - Each page is exposed as a route based on its file name. -

+ ``` + / + ├── public/ + │ ├── robots.txt + │ └── favicon.ico + ├── src/ + │ ├── components/ + │ │ └── Tour.astro + │ └── pages/ + │ └── index.astro + └── package.json + ```` -

- There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. -

+ Astro looks for `.astro` or `.md` files in the `src/pages/` directory. + Each page is exposed as a route based on its file name. -

Any static assets, like images, can be placed in the public/ directory.

+ There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. + + Any static assets, like images, can be placed in the `public/` directory. +