Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
3d53b15f7b | |||
|
d10fe280a5 | ||
|
5ea5774042 | ||
|
3c82fb43d8 | ||
|
c7071ab583 | ||
|
125d70d62e | ||
|
357634d3f0 | ||
|
bd4b85c874 | ||
7efa375427 |
6
.github/workflows/release-image.yml
vendored
6
.github/workflows/release-image.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log into the container registry
|
- name: Log into the container registry
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
|
uses: docker/login-action@3b8fed7e4b60203b2aa0ecc6c6d6d91d12c06760
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Extract metadata for Docker
|
- name: Extract metadata for Docker
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@60a0d343a0d8a18aedee9d34e62251f752153bdb
|
uses: docker/metadata-action@70b2cdc6480c1a8b86edf1777157f8f437de2166
|
||||||
with:
|
with:
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
@@ -36,7 +36,7 @@ jobs:
|
|||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85
|
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
FROM node:20.17.0-alpine3.20 AS base
|
FROM node:20.17.0-alpine3.20 AS base
|
||||||
|
|
||||||
LABEL version="0.5.2"
|
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;
|
||||||
}
|
}
|
||||||
|
10
package.json
10
package.json
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "site-profile",
|
"name": "site-profile",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.5.2",
|
"version": "0.5.4",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "astro dev",
|
"dev": "astro dev",
|
||||||
"start": "astro dev",
|
"start": "astro dev",
|
||||||
@@ -11,9 +11,9 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/check": "^0.9.3",
|
"@astrojs/check": "^0.9.3",
|
||||||
"@astrojs/node": "^8.3.3",
|
"@astrojs/node": "^8.3.4",
|
||||||
"@directus/sdk": "^17.0.0",
|
"@directus/sdk": "^17.0.1",
|
||||||
"astro": "^4.14.5",
|
"astro": "^4.15.9",
|
||||||
"typescript": "^5.5.4"
|
"typescript": "^5.6.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
481
pnpm-lock.yaml
generated
481
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -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"],
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
@@ -37,7 +37,7 @@ const posts = await directus.request(
|
|||||||
<PortfolioPreview posts={post} />
|
<PortfolioPreview posts={post} />
|
||||||
</li>
|
</li>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
</Grid>
|
</Grid>
|
||||||
</main>
|
</main>
|
||||||
<ContactCTA />
|
<ContactCTA />
|
||||||
|
@@ -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