diff --git a/src/components/BlogPost.astro b/src/components/BlogPost.astro index 15deac1..aaeb17e 100644 --- a/src/components/BlogPost.astro +++ b/src/components/BlogPost.astro @@ -6,6 +6,7 @@ interface Props { } const { title, published_at, slug } = Astro.props; +import Link from "../components/Link.astro"; ---
  • @@ -13,11 +14,11 @@ const { title, published_at, slug } = Astro.props;

    - {title} + {title}

    diff --git a/src/components/Link.astro b/src/components/Link.astro new file mode 100644 index 0000000..be482eb --- /dev/null +++ b/src/components/Link.astro @@ -0,0 +1,13 @@ +--- +interface Props { + extraClasses?: string; + [x: string]: unknown; +} +--- + + + + diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 7cef053..a28b387 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -3,6 +3,7 @@ const paths = [ { name: "home", path: "/" }, { name: "blogs", path: "/blogs" }, ]; +import Link from "../components/Link.astro"; ---
    @@ -11,12 +12,9 @@ const paths = [ { paths.map(({ name, path }) => (
  • - + {name} - {" "} + {" "}
  • )) } diff --git a/src/pages/index.astro b/src/pages/index.astro index e712edd..d524bb5 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,6 +2,7 @@ import { Image } from "astro:assets"; import daneImage from "../images/dane.png"; import Layout from "../layouts/Layout.astro"; +import Link from "../components/Link.astro"; import { getCollection } from "astro:content"; @@ -40,12 +41,12 @@ const posts = (await getCollection("blog"))
  • {post.data.title} - (view more) - +

    posted on{" "} @@ -59,11 +60,7 @@ const posts = (await getCollection("blog")) )) } - View All Blog Entries + View All Blog Entries
    @@ -74,29 +71,29 @@ const posts = (await getCollection("blog"))