✨ Added Sb1 Actual integration to projects.
All checks were successful
Build and deploy website / build (push) Successful in 39s
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:
@ -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>
|
||||
|
Reference in New Issue
Block a user