diff --git a/src/components/HorizontalCard.astro b/src/components/HorizontalCard.astro index f25c80a..c98384d 100644 --- a/src/components/HorizontalCard.astro +++ b/src/components/HorizontalCard.astro @@ -1,9 +1,11 @@ --- -const { title, img, desc, url, badge, tags } = Astro.props; +const { title, img, desc, url, badge, tags, target } = Astro.props; + +let cardTarget = target ? target : "_blank"; ---
- +
diff --git a/src/components/SideBar.astro b/src/components/SideBar.astro index 75dde59..98d4108 100644 --- a/src/components/SideBar.astro +++ b/src/components/SideBar.astro @@ -12,7 +12,7 @@
  • Home
  • Projects
  • -
  • Blog
  • +
  • Blog
  • CV
  • Support my Work
  • Contact
  • diff --git a/src/pages/blog.astro b/src/pages/blog.astro deleted file mode 100644 index a681736..0000000 --- a/src/pages/blog.astro +++ /dev/null @@ -1,57 +0,0 @@ ---- -import BaseHead from '../components/BaseHead.astro'; -import Header from '../components/Header.astro'; -import Footer from '../components/Footer.astro'; -import { SITE_TITLE, SITE_DESCRIPTION } from '../config'; - -// Use Astro.glob() to fetch all posts, and then sort them by date. -const posts = (await Astro.glob('./blog/*.{md,mdx}')).sort( - (a, b) => new Date(b.frontmatter.pubDate).valueOf() - new Date(a.frontmatter.pubDate).valueOf() -); ---- - - - - - - - - -
    -
    -
    -
      - {posts.map((post) => ( -
    • - - {post.frontmatter.title} -
    • - ))} -
    -
    -
    -