Skip to content

Commit

Permalink
Tweaks to improve “link” search results (#2091)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
delucis and sarah11918 authored Nov 22, 2022
1 parent 36fd85a commit f3193c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/pages/en/core-concepts/astro-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 pages to link to other pages on your site.

## Astro Pages

Astro pages use the `.astro` file extension and support the same features as [Astro components](/en/core-concepts/astro-components/).
Expand Down
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';
Expand Down
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';
Expand Down

0 comments on commit f3193c3

Please sign in to comment.