summaryrefslogtreecommitdiff
path: root/examples/doc/src/pages/index.astro
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2021-05-27 09:16:14 -0500
committerGravatar GitHub <noreply@github.com> 2021-05-27 09:16:14 -0500
commit5247a23cbe534d79cdf4abe4c200a351dddc5dc2 (patch)
tree343c54fb5471998b4e1a9150d15ba63028548928 /examples/doc/src/pages/index.astro
parent19dc517b87c3b6ad90c97bd220fe96becf27b196 (diff)
downloadastro-5247a23cbe534d79cdf4abe4c200a351dddc5dc2.tar.gz
astro-5247a23cbe534d79cdf4abe4c200a351dddc5dc2.tar.zst
astro-5247a23cbe534d79cdf4abe4c200a351dddc5dc2.zip
Example: Docs template (#226)
* fix: markdown issues * wip: add docs example * example: update doc template * chore: credit Steph for AvatarList * chore: align footer to bottom viewport * chore: feeback R1 * fix: font fallback in firefox * fix merge conflicts * fix: add default value to headers * chore: fix doc example
Diffstat (limited to 'examples/doc/src/pages/index.astro')
-rw-r--r--examples/doc/src/pages/index.astro14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/doc/src/pages/index.astro b/examples/doc/src/pages/index.astro
new file mode 100644
index 000000000..fe00e15a8
--- /dev/null
+++ b/examples/doc/src/pages/index.astro
@@ -0,0 +1,14 @@
+---
+import Markdown from 'astro/components/Markdown.astro';
+import Layout from '../layouts/Main.astro';
+---
+
+<Layout content={{ title: 'Hello world!' }}>
+ <Markdown>
+ # Hello world!
+
+ This is a starter template, have fun building your next documentation site with [Astro](https://astro.build).
+
+ It offers the right mix of simple-to-use [Markdown pages](/example) and rich, interactive components embedded in `.astro` files using `<Markdown>`.
+ </Markdown>
+</Layout>