Update Starter template to use the Markdown component (#270)

Uses the Markdown component in the Tour component.
This commit is contained in:
Matthew Phillips 2021-05-28 12:54:39 -04:00 committed by GitHub
parent a0055bd985
commit 14cfd204de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 22 deletions

View file

@ -7,7 +7,7 @@ export default {
// '.jsx': 'react', // Set this to "preact" or "react" to determine what *.jsx files should load // '.jsx': 'react', // Set this to "preact" or "react" to determine what *.jsx files should load
}, },
buildOptions: { 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) // sitemap: true, // Generate sitemap (set to "false" to disable)
}, },
devOptions: { devOptions: {

View file

@ -4,31 +4,31 @@
</div> </div>
<section> <section>
<h2>🚀 Project Structure</h2> <Markdown>
<p>Inside of your Astro project, you'll see the following folders and files:</p> ## 🚀 Project Structure
<pre><code class="tree">/ Inside of your Astro project, you'll see the following folders and files:
├── public/
│ ├── robots.txt
│ └── favicon.ico
├── src/
│ ├── components/
│ │ └── Tour.astro
│ └── pages/
│ └── index.astro
└── package.json</code>
</pre>
<p> ```
Astro looks for <code>.astro</code> or <code>.md</code> files in the <code>src/pages/</code> directory. /
├── public/
│ ├── robots.txt
│ └── favicon.ico
├── src/
│ ├── components/
│ │ └── Tour.astro
│ └── pages/
│ └── index.astro
└── package.json
````
Astro looks for `.astro` or `.md` files in the `src/pages/` directory.
Each page is exposed as a route based on its file name. Each page is exposed as a route based on its file name.
</p>
<p> There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
There's nothing special about <code>src/components/</code>, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
</p>
<p>Any static assets, like images, can be placed in the <code>public/</code> directory.</p> Any static assets, like images, can be placed in the `public/` directory.
</Markdown>
</section> </section>
<section> <section>