Skip to content

Commit 4ebb4ac

Browse files
committed
Improve prague section.
1 parent 0aceaf0 commit 4ebb4ac

File tree

7 files changed

+75
-60
lines changed

7 files changed

+75
-60
lines changed

astro.config.mjs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import path, { dirname } from "path";
2-
import { fileURLToPath } from "url";
1+
import path from "path";
32
import { defineConfig } from "astro/config";
43
import mdx from "@astrojs/mdx";
5-
import { h } from "hastscript";
64
import sitemap from "@astrojs/sitemap";
75
import react from "@astrojs/react";
86
import tailwind from "@astrojs/tailwind";
@@ -13,9 +11,6 @@ import metaTags from "astro-meta-tags";
1311
import pagefind from "astro-pagefind";
1412
import deleteUnusedImages from "astro-delete-unused-images";
1513

16-
const __filename = fileURLToPath(import.meta.url);
17-
const __dirname = dirname(__filename); // @type-check enabled!
18-
1914
// https://astro.build/config
2015
export default defineConfig({
2116
vite: {
@@ -24,6 +19,7 @@ export default defineConfig({
2419
},
2520
resolve: {
2621
alias: {
22+
"@data": path.resolve("./src/data"),
2723
"@components": path.resolve("./src/components"),
2824
"@sections": path.resolve("./src/components/sections"),
2925
"@layouts": path.resolve("./src/layouts"),
File renamed without changes.

src/components/hero-section/prague.astro

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/components/sections/prague.astro

Lines changed: 72 additions & 7 deletions
Large diffs are not rendered by default.

src/data/home/prague.mdx

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/pages/index.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import Prague from "@sections/prague.astro";
1616
<Updates />
1717

1818
<KeynotersComponent />
19-
2019
<Prague />
2120

2221
<Sponsors />

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"jsx": "react-jsx",
66
"jsxImportSource": "react",
77
"paths": {
8+
"@data/*": ["src/data/*"],
89
"@components/*": ["src/components/*"],
910
"@sections/*": ["src/components/sections/*"],
1011
"@ui/*": ["src/components/ui/*"],

0 commit comments

Comments
 (0)