Welcome to Tailwind Astro
diff --git a/README.md b/README.md index ccbd39d..103f189 100644 --- a/README.md +++ b/README.md @@ -1,42 +1 @@ -# Welcome to [Astro](https://astro.build) - -[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics) - -> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun! - -## 🚀 Project Structure - -Inside of your Astro project, you'll see the following folders and files: - -``` -/ -├── public/ -│ └── favicon.ico -├── src/ -│ ├── components/ -│ │ └── Layout.astro -│ └── pages/ -│ └── index.astro -└── package.json -``` - -Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name. - -There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components or layouts. - -Any static assets, like images, can be placed in the `public/` directory. - -## 🧞 Commands - -All commands are run from the root of the project, from a terminal: - -| Command | Action | -| :---------------- | :------------------------------------------- | -| `npm install` | Installs dependencies | -| `npm run dev` | Starts local dev server at `localhost:3000` | -| `npm run build` | Build your production site to `./dist/` | -| `npm run preview` | Preview your build locally, before deploying | - -## 👀 Want to learn more? - -Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). +# Tailwind Astro \ No newline at end of file diff --git a/jsconfig.json b/jsconfig.json index 7ac8180..2e15dbf 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -10,6 +10,10 @@ // Enable stricter transpilation for better output. "isolatedModules": true, // Add type definitions for our Vite runtime. - "types": ["vite/client"] + "types": ["vite/client"], + "baseUrl": ".", + "paths": { + "~/*": ["src/*"] + } } } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index da65595..0a20c51 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,5 +1,5 @@ --- -const { title } = Astro.props; +const { title = "", description = "" } = Astro.props; --- @@ -9,6 +9,7 @@ const { title } = Astro.props;