Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
7efa375427 | |||
358d6b91c6 | |||
92d4be91df |
@@ -1,6 +1,6 @@
|
||||
FROM node:20.16.0-alpine3.20 AS base
|
||||
FROM node:20.17.0-alpine3.20 AS base
|
||||
|
||||
LABEL version="0.5.0"
|
||||
LABEL version="0.5.3"
|
||||
LABEL description="Astro based website to use as a profile"
|
||||
|
||||
ENV PNPM_HOME="/pnpm"
|
||||
|
@@ -26,17 +26,12 @@ type Skills = {
|
||||
skill_3_description: string;
|
||||
}
|
||||
|
||||
type Author = {
|
||||
name: string
|
||||
}
|
||||
|
||||
export type Post = {
|
||||
slug: string;
|
||||
title: string;
|
||||
content: string;
|
||||
image: string;
|
||||
published_date: string;
|
||||
author: Author;
|
||||
tags: string[];
|
||||
image_alt: string;
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "site-profile",
|
||||
"type": "module",
|
||||
"version": "0.5.0",
|
||||
"version": "0.5.3",
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"start": "astro dev",
|
||||
@@ -13,7 +13,7 @@
|
||||
"@astrojs/check": "^0.9.3",
|
||||
"@astrojs/node": "^8.3.3",
|
||||
"@directus/sdk": "^17.0.0",
|
||||
"astro": "^4.14.2",
|
||||
"astro": "^4.14.5",
|
||||
"typescript": "^5.5.4"
|
||||
}
|
||||
}
|
16
pnpm-lock.yaml
generated
16
pnpm-lock.yaml
generated
@@ -13,13 +13,13 @@ importers:
|
||||
version: 0.9.3(typescript@5.5.4)
|
||||
'@astrojs/node':
|
||||
specifier: ^8.3.3
|
||||
version: 8.3.3(astro@4.14.2(rollup@4.21.0)(typescript@5.5.4))
|
||||
version: 8.3.3(astro@4.14.5(rollup@4.21.0)(typescript@5.5.4))
|
||||
'@directus/sdk':
|
||||
specifier: ^17.0.0
|
||||
version: 17.0.0
|
||||
astro:
|
||||
specifier: ^4.14.2
|
||||
version: 4.14.2(rollup@4.21.0)(typescript@5.5.4)
|
||||
specifier: ^4.14.5
|
||||
version: 4.14.5(rollup@4.21.0)(typescript@5.5.4)
|
||||
typescript:
|
||||
specifier: ^5.5.4
|
||||
version: 5.5.4
|
||||
@@ -672,8 +672,8 @@ packages:
|
||||
array-iterate@2.0.1:
|
||||
resolution: {integrity: sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==}
|
||||
|
||||
astro@4.14.2:
|
||||
resolution: {integrity: sha512-x9VeYx8Ih6kYKBMVwwsfRzsZVq30+SUhiawnYQ6+46qQnEx3zH05KcH24HsJMe6dVpHD8HdH7CWR5C4o7Q/jeg==}
|
||||
astro@4.14.5:
|
||||
resolution: {integrity: sha512-sv47kPE6FnvyxxHHcCePNwTKpOMKBq0r1m6WZYg6ag9j3yF9m72ov64NFB7c+hAMDUKgsHfVdLKjOOqDC/c+fA==}
|
||||
engines: {node: ^18.17.1 || ^20.3.0 || >=21.0.0, npm: '>=9.6.5', pnpm: '>=7.1.0'}
|
||||
hasBin: true
|
||||
|
||||
@@ -2071,9 +2071,9 @@ snapshots:
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
||||
'@astrojs/node@8.3.3(astro@4.14.2(rollup@4.21.0)(typescript@5.5.4))':
|
||||
'@astrojs/node@8.3.3(astro@4.14.5(rollup@4.21.0)(typescript@5.5.4))':
|
||||
dependencies:
|
||||
astro: 4.14.2(rollup@4.21.0)(typescript@5.5.4)
|
||||
astro: 4.14.5(rollup@4.21.0)(typescript@5.5.4)
|
||||
send: 0.18.0
|
||||
server-destroy: 1.0.1
|
||||
transitivePeerDependencies:
|
||||
@@ -2639,7 +2639,7 @@ snapshots:
|
||||
|
||||
array-iterate@2.0.1: {}
|
||||
|
||||
astro@4.14.2(rollup@4.21.0)(typescript@5.5.4):
|
||||
astro@4.14.5(rollup@4.21.0)(typescript@5.5.4):
|
||||
dependencies:
|
||||
'@astrojs/compiler': 2.10.3
|
||||
'@astrojs/internal-helpers': 0.4.1
|
||||
|
@@ -18,7 +18,7 @@ const global = await directus.request(readSingleton("global"));
|
||||
|
||||
const posts = await directus.request(
|
||||
readItems("posts", {
|
||||
fields: ['*', { author: ['*'] }],
|
||||
fields: ['*'],
|
||||
sort: ["-published_date"],
|
||||
})
|
||||
);
|
||||
|
@@ -13,7 +13,7 @@ const global = await directus.request(readSingleton("global"));
|
||||
|
||||
const posts = await directus.request(
|
||||
readItems("posts", {
|
||||
fields: ['*', { author: ['*'] }],
|
||||
fields: ['*'],
|
||||
sort: ["-published_date"],
|
||||
})
|
||||
);
|
||||
@@ -37,7 +37,7 @@ const posts = await directus.request(
|
||||
<PortfolioPreview posts={post} />
|
||||
</li>
|
||||
))
|
||||
}
|
||||
}
|
||||
</Grid>
|
||||
</main>
|
||||
<ContactCTA />
|
||||
|
@@ -11,7 +11,7 @@ import { readItems } from "@directus/sdk";
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const posts = await directus.request(readItems("posts", {
|
||||
fields: ['*', { author: ['*'] }],
|
||||
fields: ['*'],
|
||||
}));
|
||||
return posts.map((post) => ({ params: { slug: post.slug }, props: post }));
|
||||
}
|
||||
@@ -28,7 +28,7 @@ const published_date: string = new Date(post.published_date).toLocaleDateString(
|
||||
<a class="back-link" href="/projects/"><Icon icon="arrow-left" /> Projects</a>
|
||||
<Hero
|
||||
title={post.title}
|
||||
tagline=`Published by ${post.author.name} on ${published_date}`
|
||||
tagline=`Published on ${published_date}`
|
||||
align="start"
|
||||
>
|
||||
<div class="details">
|
||||
|
Reference in New Issue
Block a user