Added Sb1 Actual integration to projects.
All checks were successful
Build and deploy website / build (push) Successful in 39s

- Code style is Catppuccin Mocha
- Added lang tag to project
- Added keywords to project
- Sort projects by latest updated
This commit is contained in:
2025-02-27 21:13:01 +01:00
parent 14c65bda05
commit a2584b97a1
13 changed files with 175 additions and 33 deletions

View File

@ -18,6 +18,7 @@ const { project } = Astro.props
const entry = await getEntry("projects", project)
const { Content } = await render(entry!)
const {
lang,
title,
description,
tags,
@ -29,7 +30,10 @@ const {
} = entry!.data
function localeDateString(isoString: string): string {
return dayjs(isoString).locale(languageTag()).format("YYYY-MM-DD")
if (languageTag() === "nb") {
return dayjs(isoString).locale(languageTag()).format("DD/MM/YYYY")
}
return dayjs(isoString).locale(languageTag()).format("DD-MM-YYYY")
}
---
@ -53,5 +57,7 @@ function localeDateString(isoString: string): string {
<GiteaLink href={source} class="my-2" />
<p class="my-2">{description}</p>
<Content />
<div lang={lang}>
<Content />
</div>
</Layout>