Skip to content

Commit

Permalink
Mdx support and several changes (#5)
Browse files Browse the repository at this point in the history
# Mdx files supported

- Mdx plugin was added to Astro. The project can render `mdx` and `md`
files.
- Latest post is displayed on `index.astro` as main page.
- Content collection API is used to query posts pages. `env.d.ts` and
`tsconfig.json` were modified.
- A template page was created to host markdown contents
`[...slug].astro`.

# Other changes

- Poppins font was added to project.
- `global.css` was modified to include new font a some UI changes.
- Aliases were added to reduce import path in pages, components and
layouts.
- Navigation was added to list all posts, it is on `Footer` component
- Post's title redirect to home.

# Fixes
- #1
- #2
- #3
- #4
  • Loading branch information
IsTheMartin authored Feb 12, 2024
2 parents 2ee6638 + 2de6299 commit 76b1d9b
Show file tree
Hide file tree
Showing 18 changed files with 900 additions and 129 deletions.
7 changes: 6 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { defineConfig } from 'astro/config';

import mdx from "@astrojs/mdx";

// https://astro.build/config
export default defineConfig({});
export default defineConfig({
integrations: [mdx()],
output: "hybrid"
});
Binary file added fonts/poppins-regular.woff2
Binary file not shown.
Loading

0 comments on commit 76b1d9b

Please sign in to comment.