From dc3f6fdb842f14731958528c888b4ff4aa116329 Mon Sep 17 00:00:00 2001 From: Clembs Date: Sun, 2 Aug 2026 13:57:40 +0200 Subject: [PATCH] feat: AT URIs for existing blog posts (wip) --- src/content.config.ts | 1 + src/content/blog/clembs-2023/en.mdx | 1 + src/content/blog/clembs-2025/en.mdx | 1 + src/content/blog/clembs-2025/fr.mdx | 1 + src/content/blog/crbt-website/en.mdx | 1 + src/content/blog/kikuri/en.mdx | 1 + src/content/blog/pns-2025/en.mdx | 1 + src/content/blog/pns-2025/fr.mdx | 1 + src/content/blog/purplet/en.mdx | 1 + src/content/blog/uniten-internship/fr.mdx | 1 + src/layouts/Layout.astro | 5 +++-- 11 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/content.config.ts b/src/content.config.ts index 8ded7ac..c33721f 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -11,6 +11,7 @@ const blog = defineCollection({ z.object({ title: z.string(), lede: z.string(), + atUri: z.string(), createdAt: z.coerce.date(), lastEditedAt: z.coerce.date().optional(), bannerPath: image().optional(), diff --git a/src/content/blog/clembs-2023/en.mdx b/src/content/blog/clembs-2023/en.mdx index 3bd07e5..2b876c1 100644 --- a/src/content/blog/clembs-2023/en.mdx +++ b/src/content/blog/clembs-2023/en.mdx @@ -6,6 +6,7 @@ bannerPath: ./_banner.png bannerThumbnailPath: /small-banners/clembs-2023.webp bannerAlt: A white sheet with a colorful "Clembs" logomark. A purple robot cat is zooming by on the left side. Sparkles and small shapes are seen around the page. A red LIVE indicator is on the top right. projectUrl: https://clembs.com +atUri: at://did:plc:ywcz5zihn4hxynh6wmxk4f4y/site.standard.document/3ms3vpinxr2e5 --- import Callout from '@components/Callout.astro'; diff --git a/src/content/blog/clembs-2025/en.mdx b/src/content/blog/clembs-2025/en.mdx index 8191063..025680a 100644 --- a/src/content/blog/clembs-2025/en.mdx +++ b/src/content/blog/clembs-2025/en.mdx @@ -6,6 +6,7 @@ bannerPath: ./_banner.png bannerThumbnailPath: /small-banners/clembs-2025.webp bannerAlt: A picture of Clément's face alongside its "C" logo, surrounded by smaller blue-tinted visual elements, such as a bunch of icons, waves in shades of blue, a clock, pills with "Français" and "English" inside, notebooks and Habile (a purple robot cat). projectUrl: https://clembs.com +atUri: at://did:plc:ywcz5zihn4hxynh6wmxk4f4y/site.standard.document/3ms3vpip3vc5l --- import { Image } from 'astro:assets'; diff --git a/src/content/blog/clembs-2025/fr.mdx b/src/content/blog/clembs-2025/fr.mdx index 8f88988..2fc0790 100644 --- a/src/content/blog/clembs-2025/fr.mdx +++ b/src/content/blog/clembs-2025/fr.mdx @@ -6,6 +6,7 @@ bannerPath: ./_banner-fr.png bannerThumbnailPath: /small-banners/clembs-2025.webp bannerAlt: 'Une photo du visage de Clément avec son logo "C", encerclés par des éléments à la teinte bleue : une pile d''icônes, des vagues en nuances de bleu, une horloge, des pillules au texte "Français" et "English" ainsi que des cahiers et Habile (un chat-robot violet).' projectUrl: https://clembs.com +atUri: at://did:plc:ywcz5zihn4hxynh6wmxk4f4y/site.standard.document/3ms3vpiqcxcvd --- import { Image } from 'astro:assets'; diff --git a/src/content/blog/crbt-website/en.mdx b/src/content/blog/crbt-website/en.mdx index e033945..b02c24d 100644 --- a/src/content/blog/crbt-website/en.mdx +++ b/src/content/blog/crbt-website/en.mdx @@ -6,6 +6,7 @@ lastEditedAt: 2025-08-16 projectUrl: https://crbt.app bannerPath: ./_banner.png bannerThumbnailPath: /small-banners/crbt-website.webp +atUri: at://did:plc:ywcz5zihn4hxynh6wmxk4f4y/site.standard.document/3ms3vpirjzcyk --- ## Overview diff --git a/src/content/blog/kikuri/en.mdx b/src/content/blog/kikuri/en.mdx index f640c0e..770972d 100644 --- a/src/content/blog/kikuri/en.mdx +++ b/src/content/blog/kikuri/en.mdx @@ -6,6 +6,7 @@ clientText: Freelance work paid for by Kikuri Bot bannerPath: ./_banner.png bannerThumbnailPath: /small-banners/kikuri.webp projectUrl: https://www.behance.net/gallery/173728135/Kikuri-web-design-UIUX +atUri: at://did:plc:ywcz5zihn4hxynh6wmxk4f4y/site.standard.document/3ms3vpijtwcg2 --- ## Overview diff --git a/src/content/blog/pns-2025/en.mdx b/src/content/blog/pns-2025/en.mdx index 717c39c..c85e943 100644 --- a/src/content/blog/pns-2025/en.mdx +++ b/src/content/blog/pns-2025/en.mdx @@ -6,6 +6,7 @@ clientText: Volunteer work for the PNS association bannerPath: ./_banner.png bannerThumbnailPath: /small-banners/pns-2025.webp bannerAlt: Squared white lettering of "PNS" with a large opaque horizontal drop shadow. Background is bright red. +atUri: at://did:plc:ywcz5zihn4hxynh6wmxk4f4y/site.standard.document/3ms3vpiso5kld --- import LinkPreview from '@components/LinkPreview.astro'; diff --git a/src/content/blog/pns-2025/fr.mdx b/src/content/blog/pns-2025/fr.mdx index 3c57948..c1a2313 100644 --- a/src/content/blog/pns-2025/fr.mdx +++ b/src/content/blog/pns-2025/fr.mdx @@ -6,6 +6,7 @@ clientText: Travail bénévole pour l'association PNS bannerPath: ./_banner.png bannerThumbnailPath: /small-banners/pns-2025.webp bannerAlt: Lettrage carré écrivant PNS en blanc, avec une large ombre portée noire opaque. Le fond est rouge vif. +atUri: at://did:plc:ywcz5zihn4hxynh6wmxk4f4y/site.standard.document/3ms3vpittb253 --- import LinkPreview from '@components/LinkPreview.astro'; diff --git a/src/content/blog/purplet/en.mdx b/src/content/blog/purplet/en.mdx index c015d6c..1518c37 100644 --- a/src/content/blog/purplet/en.mdx +++ b/src/content/blog/purplet/en.mdx @@ -7,6 +7,7 @@ bannerPath: ./_banner.png bannerThumbnailPath: /small-banners/purplet.webp bannerAlt: The Purplet logomark, composed of a 3D purple file icon on top of a small red robot, with extra yellow sparkles and a reload icon. The logo is surrounded by gears in different shades of purple. projectUrl: https://www.instagram.com/p/Cj2GQwhA8tn/ +atUri: at://did:plc:ywcz5zihn4hxynh6wmxk4f4y/site.standard.document/3ms3vpiuyekvf --- ## About diff --git a/src/content/blog/uniten-internship/fr.mdx b/src/content/blog/uniten-internship/fr.mdx index 5487cff..617e66c 100644 --- a/src/content/blog/uniten-internship/fr.mdx +++ b/src/content/blog/uniten-internship/fr.mdx @@ -6,6 +6,7 @@ clientText: Travail réalisé dans le cadre d'un stage pour Martin PASQUIER bannerPath: ./_banner.png bannerThumbnailPath: /small-banners/uniten-internship.webp bannerAlt: Le logo carré "UNITEN" à gauche de deux iPhones en quinconce. Le premier montre un écran "Prêt.e à jouer ?" sur fond de terre battue. Le deuxième montre l'écran d'accueil avec une liste de sessions comportant une date, un lieu et un profil utilisateur. Le fond, blanc et beige, comporte une illustration de raquette frappant une balle. +atUri: at://did:plc:ywcz5zihn4hxynh6wmxk4f4y/site.standard.document/3ms3vpikzz2od --- import Callout from '@components/Callout.astro'; diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index c4041f4..fd069dd 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,10 +1,10 @@ --- import Footer from '@components/Footer.astro'; import Navbar from '@components/Navbar.astro'; -import '../styles/global.scss'; +import { getLocaleFromUrl, useTranslatedPaths, useTranslations } from '@i18n'; import type { ImageMetadata } from 'astro'; import type { BlogData } from 'src/content.config'; -import { getLocaleFromUrl, useTranslatedPaths, useTranslations } from '@i18n'; +import '../styles/global.scss'; type Props = { title: string; @@ -101,6 +101,7 @@ const translatePaths = useTranslatedPaths(lang); {post.lastEditedAt && ( )} + {/*