diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index 7f91b23..859b607 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -1,54 +1,99 @@ --- -import '../styles/global.scss'; -import '../styles/fonts.scss'; +import '@styles/global.scss'; +import '@styles/fonts.scss'; interface Props { title: string; } const { title } = Astro.props; +const titleTag = title != null ? `${title} | xevion.blog` : 'xevion.blog'; +const isWide = false; --- - - - - - - - - {title} - - - - + + + + + + + + + + {titleTag} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - diff --git a/src/pages/index.astro b/src/pages/index.astro deleted file mode 100644 index fb62628..0000000 --- a/src/pages/index.astro +++ /dev/null @@ -1,123 +0,0 @@ ---- -import Layout from '../layouts/Layout.astro'; -import Card from '../components/Card.astro'; ---- - - -
- -

Welcome to Astro

-

- To get started, open the directory src/pages in your project.
- Code Challenge: Tweak the "Welcome to Astro" message above. -

- -
-
- - diff --git a/src/pages/test.astro b/src/pages/test.astro new file mode 100644 index 0000000..9caaba4 --- /dev/null +++ b/src/pages/test.astro @@ -0,0 +1,6 @@ +--- +import Base from '@layouts/Base.astro'; +--- + + Work In Progress + diff --git a/tsconfig.json b/tsconfig.json index 35be686..be3dd3e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,9 @@ "compilerOptions": { "baseUrl": ".", "paths": { + "@styles/*": [ + "src/styles/*" + ], "@layouts/*": [ "src/layouts/*" ],