Compare commits

...

12 Commits
0.5.2 ... 0.6.1

Author SHA1 Message Date
a652d06d31 update dependencies 2025-01-09 21:18:26 -06:00
9d77c9db2a update dependencies 2024-12-21 19:48:14 -06:00
528eb8fb2e update lockfile 2024-09-30 17:15:52 -05:00
14e73d61ef update dependencies 2024-09-30 17:13:16 -05:00
renovate[bot]
d10fe280a5 Update dependency @astrojs/node to v8.3.4 (#12)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 17:08:27 -05:00
renovate[bot]
5ea5774042 Update docker/build-push-action digest to 4f58ea7 (#13)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 17:08:15 -05:00
renovate[bot]
3c82fb43d8 Update docker/login-action digest to 3b8fed7 (#10)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 17:07:40 -05:00
renovate[bot]
c7071ab583 Update docker/metadata-action digest to 70b2cdc (#11)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 17:07:27 -05:00
renovate[bot]
125d70d62e Update dependency typescript to v5.6.2 (#9)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 17:07:15 -05:00
renovate[bot]
357634d3f0 Update dependency @directus/sdk to v17.0.1 (#8)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 17:06:28 -05:00
renovate[bot]
bd4b85c874 Update dependency astro to v4.14.6 (#6)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 16:23:34 -05:00
7efa375427 remove author field 2024-08-24 02:09:34 -05:00
9 changed files with 1322 additions and 980 deletions

View File

@@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v4
- name: Log into the container registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
uses: docker/login-action@3b8fed7e4b60203b2aa0ecc6c6d6d91d12c06760
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
@@ -28,7 +28,7 @@ jobs:
- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@60a0d343a0d8a18aedee9d34e62251f752153bdb
uses: docker/metadata-action@70b2cdc6480c1a8b86edf1777157f8f437de2166
with:
tags: |
type=ref,event=branch
@@ -36,7 +36,7 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75
with:
context: .
push: true

View File

@@ -1,6 +1,6 @@
FROM node:20.17.0-alpine3.20 AS base
FROM node:22.13.0-alpine3.20 AS base
LABEL version="0.5.2"
LABEL version="0.6.1"
LABEL description="Astro based website to use as a profile"
ENV PNPM_HOME="/pnpm"

View File

@@ -3,7 +3,7 @@ import { defineConfig } from 'astro/config';
import node from "@astrojs/node";
export default defineConfig({
output: "hybrid",
output: "static",
adapter: node({
mode: "standalone"
})

View File

@@ -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;
}

View File

@@ -1,7 +1,7 @@
{
"name": "site-profile",
"type": "module",
"version": "0.5.2",
"version": "0.6.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
@@ -10,10 +10,10 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.9.3",
"@astrojs/node": "^8.3.3",
"@directus/sdk": "^17.0.0",
"astro": "^4.14.5",
"typescript": "^5.5.4"
"@astrojs/check": "^0.9.4",
"@astrojs/node": "^9.0.0",
"@directus/sdk": "^18.0.0",
"astro": "^5.1.4",
"typescript": "^5.7.3"
}
}

2263
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -18,7 +18,7 @@ const global = await directus.request(readSingleton("global"));
const posts = await directus.request(
readItems("posts", {
fields: ['*', { author: ['*'] }],
fields: ['*'],
sort: ["-published_date"],
})
);

View File

@@ -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 />

View File

@@ -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">