Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaks to improve “link” search results #2091

Merged
merged 4 commits into from
Nov 22, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/pages/en/core-concepts/astro-pages.md
Original file line number Diff line number Diff line change
@@ -20,10 +20,12 @@ Astro supports the following file types in the `src/pages/` directory:

Astro leverages a routing strategy called **file-based routing**. Each file in your `src/pages/` directory becomes an endpoint on your site based on its file path.

Write standard HTML [`<a>` elements](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a) in your component template to link between pages.

📚 Read more about [Routing in Astro](/en/core-concepts/routing/).

### Link between pages

Write standard HTML [`<a>` elements](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a) in your Astro components to link to other pages on your site.
delucis marked this conversation as resolved.
Show resolved Hide resolved

## Astro Pages

Astro pages use the `.astro` file extension and support the same features as [Astro components](/en/core-concepts/astro-components/).
2 changes: 1 addition & 1 deletion src/pages/en/tutorial/3-components/1.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: ~/layouts/TutorialLayout.astro
title: Refactor page links into a Navigation component
title: Make a reusable Navigation component
description: "Tutorial: Build your first Astro blog —\nReplace elements repeated on multiple pages with a reusable component"
setup: |
import Badge from '~/components/Badge.astro';
2 changes: 1 addition & 1 deletion src/pages/en/tutorial/3-components/2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: ~/layouts/TutorialLayout.astro
title: Create a Footer with social media links
title: Create a social media footer
description: "Tutorial: Build your first Astro blog —\nBuild a new component from scratch, then add it to your pages"
setup: |
import Checklist from '~/components/Checklist.astro';