diff options
author | 2022-01-18 08:34:12 -0500 | |
---|---|---|
committer | 2022-01-18 08:34:12 -0500 | |
commit | bcc617f9dc560bd61535c136297e97fb11013d6f (patch) | |
tree | adbc508939ea66350d08533f3745a146ea455473 /examples/starter/src | |
parent | 672b831940dd90687da71225e5ca1d8326d42556 (diff) | |
download | astro-bcc617f9dc560bd61535c136297e97fb11013d6f.tar.gz astro-bcc617f9dc560bd61535c136297e97fb11013d6f.tar.zst astro-bcc617f9dc560bd61535c136297e97fb11013d6f.zip |
Update examples to move away from Astro.resolve on styles (#2393)
* Update examples to move away from Astro.resolve on styles
* Prepend the subpath
* Adds a changeset
* Switch to @import for the starter
Diffstat (limited to 'examples/starter/src')
-rw-r--r-- | examples/starter/src/pages/index.astro | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/starter/src/pages/index.astro b/examples/starter/src/pages/index.astro index 85c0f6e0d..859ebb205 100644 --- a/examples/starter/src/pages/index.astro +++ b/examples/starter/src/pages/index.astro @@ -20,8 +20,10 @@ let title = 'My Astro Site'; <title>{title}</title> <link rel="icon" type="image/x-icon" href="/favicon.ico" /> - <link rel="stylesheet" href={Astro.resolve('../styles/global.css')}> - <link rel="stylesheet" href={Astro.resolve('../styles/home.css')}> + <style global> + @import "../styles/global.css"; + @import "../styles/home.css"; + </style> <style> header { |