diff options
author | 2022-01-18 21:25:26 +0800 | |
---|---|---|
committer | 2022-01-18 08:25:26 -0500 | |
commit | 672b831940dd90687da71225e5ca1d8326d42556 (patch) | |
tree | 1062520611c1cdc77d52bba4541683a578540bca | |
parent | 6ccae4a47818080d0786a1b28147da95e1281f19 (diff) | |
download | astro-672b831940dd90687da71225e5ca1d8326d42556.tar.gz astro-672b831940dd90687da71225e5ca1d8326d42556.tar.zst astro-672b831940dd90687da71225e5ca1d8326d42556.zip |
Update doc move away from Astro.resolve on styles (#2402)
see also #2393
-rw-r--r-- | docs/src/pages/de/guides/styling.md | 4 | ||||
-rw-r--r-- | docs/src/pages/en/guides/styling.md | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/docs/src/pages/de/guides/styling.md b/docs/src/pages/de/guides/styling.md index 5c2c1b4ac..3d8fb0c82 100644 --- a/docs/src/pages/de/guides/styling.md +++ b/docs/src/pages/de/guides/styling.md @@ -241,7 +241,9 @@ Füge die Datei deiner Astro-Seite (oder deiner Layout-Komponente) hinzu: ```astro <head> - <link rel="stylesheet" href={Astro.resolve('../styles/global.css')}> + <style global> + @import "../styles/global.css"; + </style> </head> ``` diff --git a/docs/src/pages/en/guides/styling.md b/docs/src/pages/en/guides/styling.md index a32190704..7b7e8b612 100644 --- a/docs/src/pages/en/guides/styling.md +++ b/docs/src/pages/en/guides/styling.md @@ -239,7 +239,9 @@ Lastly, add it to your Astro page (or layout template): ```astro <head> - <link rel="stylesheet" href={Astro.resolve('../styles/global.css')}> + <style global> + @import "../styles/global.css"; + </style> </head> ``` |