Skip to content

Commit 1a7ada8

Browse files
authored
Merge branch 'main' into translate/pr-4446
2 parents 82d9c28 + 3fad456 commit 1a7ada8

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/content/docs/pt-br/recipes.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ Apesar das descrições abaixo estarem traduzidas, o conteúdo dos links é em I
4040
- [Adicione autenticação com nome e senha com Lucia](https://lucia-auth.com/guidebook/sign-in-with-username-and-password/astro)
4141
- [Adicione OAuth do Github com Lucia](https://lucia-auth.com/guidebook/github-oauth/astro)
4242
- [Integrando Sentry com Astro](https://akashrajpurohit.com/blog/seamless-error-tracking-integrating-sentry-with-astro/)
43+
- [Configurando Páginas de Rascunho de Forma Eficiente no Astro com Autoria de Conteúdo Orientada por Configuração](https://akashrajpurohit.com/blog/set-up-draft-pages-effectively-in-astro-with-configdriven-content-authoring/)

src/content/docs/zh-cn/tutorial/5-astro-api/3.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ import PreCheck from '~/components/tutorial/PreCheck.astro';
8787
```astro title="src/pages/tags/index.astro"
8888
---
8989
import BaseLayout from '../../layouts/BaseLayout.astro';
90-
const tags = ["astro", "successes", "community", "setbacks", "learning in public"];
90+
const allPosts = await Astro.glob("../posts/*.md");
91+
const tags = [...new Set(allPosts.map((post) => post.frontmatter.tags).flat())];
9192
const pageTitle = "Tag Index";
9293
---
9394
<BaseLayout pageTitle={pageTitle}>
@@ -177,7 +178,6 @@ import PreCheck from '~/components/tutorial/PreCheck.astro';
177178
.tags {
178179
display: flex;
179180
flex-wrap: wrap;
180-
margin: 0 auto;
181181
}
182182
183183
.tag {
@@ -219,7 +219,6 @@ const pageTitle = "Tag Index";
219219
.tags {
220220
display: flex;
221221
flex-wrap: wrap;
222-
margin: 0 auto;
223222
}
224223
225224
.tag {
@@ -290,7 +289,6 @@ const pageTitle = "Tag Index";
290289
.tags {
291290
display: flex;
292291
flex-wrap: wrap;
293-
margin: 0 auto;
294292
}
295293
296294
.tag {
@@ -365,7 +363,6 @@ const { frontmatter } = Astro.props;
365363
.tags {
366364
display: flex;
367365
flex-wrap: wrap;
368-
margin: 0 auto;
369366
}
370367
371368
.tag {

0 commit comments

Comments
 (0)