diff --git a/README.md b/README.md index e69de29..2fa1731 100644 --- a/README.md +++ b/README.md @@ -0,0 +1 @@ +# ivy.rs \ No newline at end of file diff --git a/astro.config.mjs b/astro.config.mjs index a074313..837ac3c 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -23,7 +23,7 @@ export default defineConfig({ experimental: { contentIntellisense: true, fonts: [{ - provider: fontProviders.bunny(), + provider: fontProviders.google(), name: "Inter", cssVariable: "--fontapi-inter" }] diff --git a/src/components/blog/AgeWarning.astro b/src/components/blog/AgeWarning.astro index ae4ef56..4c5c319 100644 --- a/src/components/blog/AgeWarning.astro +++ b/src/components/blog/AgeWarning.astro @@ -5,23 +5,22 @@ const { date } = Astro.props; const isOldPost = (date: Date) => { // very much stolen from the wonderful Robb Knight (https://rknight.me) - return true; const d = DateTime.fromISO(date.toISOString()).setZone("Europe/London"); - return DateTime.now().diff(d, "years").years > 4; + return DateTime.now().diff(d, "years").years > -1; }; --- { () => { - if (isOldPost) { + if (isOldPost(date)) { return ( - a + It might have now-false information or not reflect my current views. ); } diff --git a/src/components/ui/Notif.astro b/src/components/ui/Notif.astro index e757bda..747c76f 100644 --- a/src/components/ui/Notif.astro +++ b/src/components/ui/Notif.astro @@ -2,29 +2,31 @@ import { clsx } from "clsx"; interface Props { - level: number; - icon?: string; - heading?: string; - xstyle?: string; + level: number; + icon?: string; + heading?: string; + xstyle?: string; } // level 0: info/note // level 1: warning -// level 2: attn needed: oh fuck +// level 2: attn needed +// level 3: oh fuck const { level, icon, heading, xstyle } = Astro.props; ---
-
- {icon && } - {heading &&

{heading}

} -
- +
+ {icon && } + {heading &&

{heading}

} +
+
diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index 3bf688c..4b21d72 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -17,7 +17,7 @@ const { title, date, description } = Astro.props; { () => { if (!isProd()) { - return dev mode, hang tight; + return dev mode, hang tight; } } } diff --git a/src/pages/blog/[id].astro b/src/pages/blog/[id].astro index 7776bf7..b1b1302 100644 --- a/src/pages/blog/[id].astro +++ b/src/pages/blog/[id].astro @@ -22,7 +22,7 @@ const { Content } = await render(post); date={post.data.date} icon={post.data.icon} > - + diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index f85705b..0ac8795 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -1,6 +1,7 @@ --- import Page from "~/layouts/Page.astro"; import BlogPostList from "~/components/lists/BlogPostList.astro"; +import StyledLink from "~/components/util/StyledLink.astro"; --- + See all the tags diff --git a/src/pages/blog/tags/index.astro b/src/pages/blog/tags/index.astro index d752b3e..94137f0 100644 --- a/src/pages/blog/tags/index.astro +++ b/src/pages/blog/tags/index.astro @@ -1,15 +1,19 @@ --- import Layout from "~/layouts/Page.astro"; +import StyledLink from "~/components/util/StyledLink.astro"; import { getCollection } from "astro:content"; const allPosts = await getCollection("blog"); const tags = [...new Set(allPosts.map((post) => post.data.tags).flat())]; + + --- + Back to the blog index
    { - tags.map((tag) =>
  • + tags.map((tag) =>
  • {tag}