Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,10 @@ content collections to manage the content. The collections are configure inside

### Pages

Pages are stored in the `src/content/pages` directory. Each page is a mdx file
Pages are stored in the `src/content/pages` directory. Each page is a md file
with frontmatter.

### Deadlines

Meanwhile, our important deadlines ⏰ are located inside the
`src/content/deadlines` directory.

## Using Astro Image Component 🖼️

When adding images to the website, please make sure to use astro Image component
and to specify the width of the image. This will make sure we are optimizing the
images and not serving large images to the users.

Here is an example:

```jsx
import { Image } from "astro:assset";

import image from "./image.jpg";

<Image src={image} width={500} />;
```
3 changes: 1 addition & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import path from "path";
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import react from "@astrojs/react";
import tailwind from "@astrojs/tailwind";
import remarkToc from "remark-toc";
import rehypeSlug from "rehype-slug";
Expand Down Expand Up @@ -50,6 +49,7 @@ export default defineConfig({
"@layouts": path.resolve("./src/layouts"),
"@ui": path.resolve("./src/components/ui"),
"@assets": path.resolve("./src/assets"),
"@styles": path.resolve("./src/styles"),
"@i18n": path.resolve("./src/i18n"),
"@src": path.resolve("./src"),
},
Expand Down Expand Up @@ -83,7 +83,6 @@ export default defineConfig({
preload(),
mdx(),
sitemap(),
react(),
tailwind({
nesting: true,
}),
Expand Down
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@
"@astro-community/astro-embed-youtube": "^0.5.6",
"@astrojs/check": "^0.9.4",
"@astrojs/mdx": "^4.2.6",
"@astrojs/react": "^4.2.7",
"@astrojs/sitemap": "^3.3.1",
"@astrojs/tailwind": "^5.1.5",
"@fontsource-variable/inter": "^5.2.5",
"@fortawesome/fontawesome-free": "^6.7.2",
"@tailwindcss/typography": "^0.5.16",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.3",
"astro": "^5.7.5",
"astro-compress": "^2.3.8",
"astro-delete-unused-images": "^1.0.3",
Expand All @@ -35,8 +32,6 @@
"js-yaml": "^4.1.0",
"marked": "^15.0.11",
"pagefind": "^1.3.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"rehype-autolink-headings": "^7.1.0",
"rehype-slug": "^6.0.0",
"remark-toc": "^9.0.0",
Expand Down
Loading