From f1a13aaf359092198e2b9e65b597fe2ed236c718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Volf?= Date: Mon, 29 Apr 2024 20:12:35 +0200 Subject: [PATCH] Create archive of old projects, add Rust for HelenOS --- package.json | 2 +- src/layouts/Base.astro | 1 - src/layouts/archive.astro | 135 ++++++++++++++++++ src/layouts/index.astro | 15 +- src/layouts/project.astro | 11 +- src/pages/archive.md | 7 + .../{projects => archive}/bakatasklist.md | 0 .../{projects => archive}/ingress-tools.md | 0 src/pages/{projects => archive}/mailmerge.md | 0 src/pages/projects/helenos-rust.md | 13 ++ 10 files changed, 178 insertions(+), 6 deletions(-) create mode 100644 src/layouts/archive.astro create mode 100644 src/pages/archive.md rename src/pages/{projects => archive}/bakatasklist.md (100%) rename src/pages/{projects => archive}/ingress-tools.md (100%) rename src/pages/{projects => archive}/mailmerge.md (100%) create mode 100644 src/pages/projects/helenos-rust.md diff --git a/package.json b/package.json index 42c9c5a..569d429 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "astro dev --experimental-integrations", "build": "astro build --experimental-integrations", - "format": "prettier --write --plugin-search-dir . --ignore-path .gitignore" + "format": "prettier --write --plugin-search-dir . --ignore-path .gitignore ." }, "devDependencies": { "@astrojs/sitemap": "^0.1.2", diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index 065fc7b..244bd70 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -26,7 +26,6 @@ const props = Astro.props as Props; - + + diff --git a/src/layouts/index.astro b/src/layouts/index.astro index 6f4ec1f..7e42ec3 100644 --- a/src/layouts/index.astro +++ b/src/layouts/index.astro @@ -139,9 +139,15 @@ const props = Astro.props.content as Props; .map(({ frontmatter, url }, i) => ( <>

= 2 }]}> - - {frontmatter.name} - + {frontmatter.links.length ? ( + <> + + {frontmatter.name} + + + ) : ( + frontmatter.name + )} {intersperse( frontmatter.tags.map((tag) => {tag}), @@ -177,6 +183,9 @@ const props = Astro.props.content as Props; )) } +

+ Archive of older projects +