# Path Aliases & Real File Paths

## Path Aliases & Real File Paths

Taxo uses path aliases heavily, especially in page and section files.

You will often see imports like:

```ts

```

But there is no `src/components/` directory. The real alias mapping lives in
`tsconfig.json`:

```json
"paths": {
  "@/components/*": ["./src/layouts/components/*"],
  "@/shortcodes/*": ["./src/layouts/shortcodes/*"],
  "@/helpers/*": ["./src/layouts/helpers/*"],
  "@/*": ["./src/*"]
}
```

### What That Means
- `@/components/...` really points to `src/layouts/components/...`
- `@/shortcodes/...` really points to `src/layouts/shortcodes/...`
- `@/helpers/...` really points to `src/layouts/helpers/...`

### Common Examples
```ts

```

Actually means:

```text
src/layouts/components/global/Logo.astro
```

```ts

```

Actually means:

```text
src/layouts/shortcodes/Accordion.astro
```

### Quick Navigation Cheat Sheet
- page shell: `src/layouts/Base.astro`
- headers and footers: `src/layouts/components/global/`, with the header parts in `global/header/` and the footer parts in `global/footer/`
- reusable sections: `src/layouts/components/sections/`
- widgets: `src/layouts/components/widgets/`
- cards: `src/layouts/components/cards/`
- MDX shortcodes: `src/layouts/shortcodes/`

Knowing the alias map saves a lot of time when the docs or code references
`@/components/...`.