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