diff --git a/astro.config.mjs b/astro.config.mjs index b8e7d65..3f2d287 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -5,9 +5,6 @@ import tailwind from "@astrojs/tailwind"; // https://astro.build/config export default defineConfig({ site: "https://blog.log101.dev", - redirects: { - "/category/[category]": "/category/[category]/1", - }, integrations: [ tailwind({ applyBaseStyles: false, diff --git a/public/furkan_erdem_cv.pdf b/public/furkan_erdem_cv.pdf new file mode 100644 index 0000000..ab82032 Binary files /dev/null and b/public/furkan_erdem_cv.pdf differ diff --git a/src/components/Header.astro b/src/components/Header.astro index fd6bd4f..4cdf07a 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -18,10 +18,15 @@
@@ -37,16 +42,16 @@
diff --git a/src/components/Post.astro b/src/components/Post.astro index 51af78b..2412459 100644 --- a/src/components/Post.astro +++ b/src/components/Post.astro @@ -47,7 +47,7 @@ const postDateFormatted = post.data.date.toLocaleDateString("tr-TR", { }); // Create post link -const postLink = `/category/${post.data.category}/posts/${post.slug}`; +const postLink = `/${post.data.category}/${post.slug}`; // Create post content as an astro component const { Content } = await post.render(); diff --git a/src/pages/category/[category]/[page].astro b/src/pages/[category]/[page]/index.astro similarity index 100% rename from src/pages/category/[category]/[page].astro rename to src/pages/[category]/[page]/index.astro diff --git a/src/pages/category/[category]/posts/[slug]/index.astro b/src/pages/[category]/[slug]/index.astro similarity index 100% rename from src/pages/category/[category]/posts/[slug]/index.astro rename to src/pages/[category]/[slug]/index.astro