summaryrefslogtreecommitdiff
path: root/docs/core-concepts/astro-pages.md
diff options
context:
space:
mode:
authorGravatar FredKSchott <FredKSchott@users.noreply.github.com> 2021-07-14 17:43:06 +0000
committerGravatar GitHub Actions <actions@github.com> 2021-07-14 17:43:06 +0000
commit1583ef173ae36eb9f325c2d163df17ea49e244a9 (patch)
treeb97a58f9e0004ffb208c4cf5db31d0c4215f9418 /docs/core-concepts/astro-pages.md
parentd40edb0b673f380c9eb9c07add3e0cd2371d9623 (diff)
downloadastro-1583ef173ae36eb9f325c2d163df17ea49e244a9.tar.gz
astro-1583ef173ae36eb9f325c2d163df17ea49e244a9.tar.zst
astro-1583ef173ae36eb9f325c2d163df17ea49e244a9.zip
[ci] yarn format
Diffstat (limited to 'docs/core-concepts/astro-pages.md')
-rw-r--r--docs/core-concepts/astro-pages.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/core-concepts/astro-pages.md b/docs/core-concepts/astro-pages.md
index 9d6c5d9db..0aedca4bf 100644
--- a/docs/core-concepts/astro-pages.md
+++ b/docs/core-concepts/astro-pages.md
@@ -5,7 +5,7 @@ title: Pages
**Pages** are a special type of [Astro Component](/core-concepts/astro-components) that handle routing, data loading, and templating for each page of your website. You can think of them like any other Astro component, just with extra responsibilities.
-Astro also supports Markdown for content-heavy pages, like blog posts and documentation. See [Markdown Content](/guides/markdown-content) for more information on writing pages with Markdown.
+Astro also supports Markdown for content-heavy pages, like blog posts and documentation. See [Markdown Content](/guides/markdown-content) for more information on writing pages with Markdown.
## File-based Routing
@@ -23,7 +23,7 @@ src/pages/posts/1.md -> mysite.com/posts/1
## Page Templating
-All Astro components are responsible for returning HTML. Astro Pages return HTML as well, but have the unique responsibility of returning a full `<html>...</html>` page response, including `<head>` ([MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head)) and `<body>` ([MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body)).
+All Astro components are responsible for returning HTML. Astro Pages return HTML as well, but have the unique responsibility of returning a full `<html>...</html>` page response, including `<head>` ([MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head)) and `<body>` ([MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body)).
`<!doctype html>` is optional, and will be added automatically.
@@ -44,7 +44,7 @@ All Astro components are responsible for returning HTML. Astro Pages return HTML
## Data Loading
-Astro pages can fetch data to help generate your pages. Astro provides two different tools to pages to help you do this: **fetch()** and **top-level await.**
+Astro pages can fetch data to help generate your pages. Astro provides two different tools to pages to help you do this: **fetch()** and **top-level await.**
📚 Read our [full guide](/guides/data-fetching) on data-fetching to learn more.
@@ -57,4 +57,4 @@ console.log(data);
---
<!-- Output the result to the page -->
<div>{JSON.stringify(data)}</div>
-``` \ No newline at end of file
+```