Compare commits

..

70 Commits

Author SHA1 Message Date
bf73905658 feat: release 2.3.0
All checks were successful
renovate / renovate (push) Successful in 39s
test-build / build (push) Successful in 1m20s
release-image-harbor / build (push) Successful in 1m15s
release-image-gitea / build (push) Successful in 1m41s
release-image-harbor / release (push) Successful in 2m23s
release-image-gitea / release (push) Successful in 2m11s
2026-02-03 17:34:10 -06:00
56d841a335 feat: better reactive layout for small screen sizes 2026-02-03 17:32:38 -06:00
95432d9059 feat: add rounded option to hero component and use it for about page 2026-02-03 16:56:03 -06:00
c2bf64c6cc fix: remove description 2026-02-03 16:55:38 -06:00
1f3fed93a1 feat: reorganize blog layout 2026-02-03 16:42:17 -06:00
754f6a22f0 feat: remove hardcoded descriptions 2026-02-03 16:18:33 -06:00
4203b63893 feat: remove mdx 2026-02-03 16:16:29 -06:00
4d7886b93c fix: clean up comments 2026-02-03 16:07:45 -06:00
c7d3ca7252 feat: remove hardcoded descriptions 2026-02-03 16:06:31 -06:00
a0f83c874c fix: add comments 2026-02-03 16:00:14 -06:00
22860c4714 feat: add docs link to footer 2026-02-03 15:58:45 -06:00
9b8a7077a7 chore(deps): update deps 2026-02-03 15:56:55 -06:00
8bfc744bdb chore: update README 2026-02-03 15:56:45 -06:00
d386afa15e Merge pull request 'chore(deps): update dependency motion to v12.30.0' (#317) from renovate/motion-12.x-lockfile into main
All checks were successful
renovate / renovate (push) Successful in 1m11s
test-build / build (push) Successful in 2m18s
Reviewed-on: #317
2026-02-03 00:17:38 +00:00
3fe324d4c2 Merge pull request 'chore(deps): update dependency @eslint-react/eslint-plugin to v2.9.3' (#316) from renovate/eslint-react-eslint-plugin-2.x-lockfile into main
Some checks failed
renovate / renovate (push) Successful in 1m58s
test-build / build (push) Has been cancelled
Reviewed-on: #316
2026-02-03 00:15:11 +00:00
a02d417c83 chore(deps): update dependency motion to v12.30.0
Some checks are pending
renovate/stability-days Updates have not met minimum release age requirement
test-build / build (pull_request) Successful in 3m18s
2026-02-03 00:09:13 +00:00
0d53376c80 chore(deps): update dependency @eslint-react/eslint-plugin to v2.9.3
Some checks are pending
renovate/stability-days Updates have not met minimum release age requirement
test-build / build (pull_request) Successful in 3m11s
2026-02-03 00:08:35 +00:00
a5abfe0d1c Merge pull request 'chore(deps): update dependency eslint-plugin-react-refresh to ^0.5.0' (#315) from renovate/eslint-plugin-react-refresh-0.x into main
All checks were successful
test-build / build (push) Successful in 1m46s
renovate / renovate (push) Successful in 2m34s
Reviewed-on: #315
2026-02-03 00:07:00 +00:00
3fcf9a0703 chore(deps): update dependency eslint-plugin-react-refresh to ^0.5.0
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 1m38s
2026-02-03 00:04:06 +00:00
00b63a5bea revert: release 2.2.5
All checks were successful
test-build / build (push) Successful in 2m29s
release-image-harbor / build (push) Successful in 1m23s
release-image-gitea / build (push) Successful in 2m39s
release-image-gitea / release (push) Successful in 5m45s
release-image-harbor / release (push) Successful in 7m49s
renovate / renovate (push) Successful in 4m11s
2026-02-01 21:50:36 -06:00
d9860106b1 chore(deps): update pnpm 2026-02-01 21:49:52 -06:00
83940a28ab Merge pull request 'chore(deps): update dependency shiki to v3.22.0' (#314) from renovate/shiki-monorepo into main
Some checks failed
renovate / renovate (push) Successful in 50s
test-build / build (push) Has been cancelled
Reviewed-on: #314
2026-02-02 03:48:48 +00:00
4baa2bed51 chore(deps): update dependency shiki to v3.22.0
Some checks failed
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Failing after 1m16s
2026-02-01 00:02:59 +00:00
19a9588919 Merge pull request 'chore(deps): update dependency preline to v4.0.1' (#313) from renovate/preline-4.x-lockfile into main
All checks were successful
test-build / build (push) Successful in 4m47s
renovate / renovate (push) Successful in 3m6s
2026-01-31 00:02:07 +00:00
3c8d3992cf chore(deps): update dependency preline to v4.0.1
Some checks are pending
renovate/stability-days Updates have not met minimum release age requirement
test-build / build (pull_request) Successful in 1m51s
2026-01-31 00:01:39 +00:00
fb8f642c52 fix: update lock
All checks were successful
renovate / renovate (push) Successful in 2m14s
test-build / build (push) Successful in 2m16s
release-image-harbor / build (push) Successful in 1m36s
release-image-gitea / build (push) Successful in 3m47s
release-image-harbor / release (push) Successful in 3m25s
release-image-gitea / release (push) Successful in 3m15s
2026-01-30 17:59:51 -06:00
fde397386c revert: release 2.2.4
Some checks failed
test-build / build (push) Failing after 24s
renovate / renovate (push) Has been cancelled
2026-01-30 17:58:08 -06:00
b7f76c5847 feat: add shiki to markdown rendering for code highlighting 2026-01-30 17:56:57 -06:00
b3bb769c47 revert: release 2.2.3
All checks were successful
renovate / renovate (push) Successful in 1m12s
release-image-harbor / build (push) Successful in 1m50s
test-build / build (push) Successful in 2m19s
release-image-gitea / build (push) Successful in 2m15s
release-image-gitea / release (push) Successful in 3m1s
release-image-harbor / release (push) Successful in 7m1s
2026-01-29 19:09:10 -06:00
f34f4b2532 revert: release 2.2.2
All checks were successful
release-image-gitea / build (push) Successful in 1m38s
test-build / build (push) Successful in 2m6s
release-image-harbor / build (push) Successful in 3m43s
release-image-gitea / release (push) Successful in 2m53s
release-image-harbor / release (push) Successful in 3m22s
renovate / renovate (push) Successful in 2m43s
2026-01-29 17:40:07 -06:00
94f5082729 chore(deps): update dependencies, preline to v4 2026-01-29 17:38:23 -06:00
5e9765f4d7 Merge pull request 'chore(deps): update dependency astro to v5.16.16' (#311) from renovate/astro-monorepo into main
All checks were successful
test-build / build (push) Successful in 1m57s
renovate / renovate (push) Successful in 3m26s
2026-01-29 18:15:46 +00:00
ac4bc16913 chore(deps): update dependency astro to v5.16.16
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 2m2s
2026-01-29 18:15:23 +00:00
daaca66f42 ci: update renovate image
Some checks failed
test-build / build (push) Successful in 2m21s
renovate / renovate (push) Has been cancelled
2026-01-29 12:12:43 -06:00
6fb7846d23 Merge pull request 'chore(deps): update dependency @types/react to v19.2.10' (#310) from renovate/react-monorepo into main
All checks were successful
renovate / renovate (push) Successful in 50s
test-build / build (push) Successful in 1m50s
2026-01-29 00:03:43 +00:00
167491fe8d chore(deps): update dependency @types/react to v19.2.10
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 2m31s
2026-01-29 00:03:21 +00:00
1cda8fac20 Merge pull request 'chore(deps): update dependency typescript-eslint to v8.54.0' (#309) from renovate/typescript-eslint-monorepo into main
All checks were successful
test-build / build (push) Successful in 2m25s
renovate / renovate (push) Successful in 3m13s
Reviewed-on: #309
2026-01-28 01:24:02 +00:00
dbf7ae54a4 Merge pull request 'chore(deps): update react monorepo to v19.2.4' (#308) from renovate/react-monorepo into main
Some checks failed
renovate / renovate (push) Has been cancelled
test-build / build (push) Has been cancelled
Reviewed-on: #308
2026-01-28 01:23:41 +00:00
a857b64029 chore(deps): update dependency typescript-eslint to v8.54.0
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 4m28s
2026-01-28 00:11:56 +00:00
6b867ec092 chore(deps): update react monorepo to v19.2.4
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 3m26s
2026-01-28 00:10:45 +00:00
3e24f3bb4f Merge pull request 'chore(deps): update dependency motion to v12.29.2' (#307) from renovate/motion-12.x-lockfile into main
All checks were successful
renovate / renovate (push) Successful in 4m26s
test-build / build (push) Successful in 4m7s
2026-01-28 00:04:56 +00:00
0c02c71693 chore(deps): update dependency motion to v12.29.2
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 5m4s
2026-01-28 00:04:29 +00:00
025a5b38aa Merge pull request 'chore(deps): update dependency @iconify-json/simple-icons to v1.2.68' (#306) from renovate/iconify-json-simple-icons-1.x-lockfile into main
Some checks failed
renovate / renovate (push) Has been cancelled
test-build / build (push) Has been cancelled
2026-01-28 00:04:00 +00:00
cdaa3af76c chore(deps): update dependency @iconify-json/simple-icons to v1.2.68
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 5m10s
2026-01-28 00:03:38 +00:00
e87c89afac Merge pull request 'chore(deps): update dependency @eslint-react/eslint-plugin to v2.7.4' (#305) from renovate/eslint-react-eslint-plugin-2.x-lockfile into main
All checks were successful
test-build / build (push) Successful in 5m0s
renovate / renovate (push) Successful in 7m18s
2026-01-27 00:04:57 +00:00
a00e188f86 chore(deps): update dependency @eslint-react/eslint-plugin to v2.7.4
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 5m36s
2026-01-27 00:04:18 +00:00
bc5f023883 ci: release 2.2.1
All checks were successful
test-build / build (push) Successful in 1m12s
release-image-gitea / build (push) Successful in 1m13s
release-image-harbor / build (push) Successful in 5m38s
release-image-gitea / release (push) Successful in 7m39s
release-image-harbor / release (push) Successful in 5m34s
renovate / renovate (push) Successful in 5m4s
2026-01-23 16:45:22 -06:00
5e272108d4 ci: fix names
Some checks failed
renovate / renovate (push) Successful in 27s
test-build / build (push) Has been cancelled
2026-01-23 16:41:25 -06:00
babf0d40cd ci: split release workflows
Some checks failed
renovate / renovate (push) Successful in 30s
test-build / build (push) Has been cancelled
2026-01-23 16:40:02 -06:00
3925f35c47 ci: release 2.2.0
All checks were successful
test-build / build (push) Successful in 52s
renovate / renovate (push) Successful in 2m3s
2026-01-23 16:34:49 -06:00
3f2c6da690 build: merge lock changes 2026-01-23 16:34:42 -06:00
01ee8fac98 fix: create new Date to compare posts 2026-01-23 16:33:29 -06:00
c8306e414b chore(deps): upgrade node 2026-01-23 16:33:29 -06:00
42d3891c6b Merge pull request 'Update dependency motion to v12.29.0' (#304) from renovate/motion-12.x-lockfile into main
Some checks failed
renovate / renovate (push) Successful in 49s
test-build / build (push) Failing after 55s
Reviewed-on: #304
2026-01-23 22:18:10 +00:00
21c08d6853 Update dependency motion to v12.29.0
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 1m25s
2026-01-23 22:13:43 +00:00
6aa62ad76d Merge pull request 'Update dependency astro to v5.16.14' (#303) from renovate/astro-monorepo into main
All checks were successful
renovate / renovate (push) Successful in 5m29s
test-build / build (push) Successful in 5m45s
2026-01-23 22:08:50 +00:00
a95908736b Update dependency astro to v5.16.14
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 1m46s
2026-01-23 22:08:32 +00:00
6ddec3a558 Merge pull request 'Update dependency motion to v12.28.1' (#302) from renovate/motion-12.x-lockfile into main
Some checks failed
renovate / renovate (push) Has been cancelled
test-build / build (push) Has been cancelled
Reviewed-on: #302
2026-01-23 22:03:57 +00:00
24a20c4a7e Update dependency motion to v12.28.1
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 5m20s
2026-01-23 00:06:23 +00:00
ecfc907744 Merge pull request 'Update dependency prettier to v3.8.1' (#301) from renovate/prettier-3.x-lockfile into main
All checks were successful
renovate / renovate (push) Successful in 2m26s
test-build / build (push) Successful in 2m33s
2026-01-23 00:03:46 +00:00
44d4837b8e Update dependency prettier to v3.8.1
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 2m18s
2026-01-23 00:03:15 +00:00
6b46e943e3 Merge pull request 'Update dependency astro to v5.16.12' (#300) from renovate/astro-monorepo into main
Some checks failed
renovate / renovate (push) Has been cancelled
test-build / build (push) Has been cancelled
2026-01-23 00:02:54 +00:00
606424972a Update dependency astro to v5.16.12
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 2m2s
2026-01-23 00:02:18 +00:00
d2a8c007e5 Merge pull request 'Update dependency motion to v12.27.5' (#299) from renovate/motion-12.x-lockfile into main
All checks were successful
test-build / build (push) Successful in 1m57s
renovate / renovate (push) Successful in 4m22s
2026-01-22 00:03:02 +00:00
3ac2a5ea1f Update dependency motion to v12.27.5
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 1m57s
2026-01-22 00:02:37 +00:00
7ef13d8437 Merge pull request 'Update dependency @types/react to v19.2.9' (#298) from renovate/react-monorepo into main
Some checks failed
renovate / renovate (push) Has been cancelled
test-build / build (push) Has been cancelled
2026-01-22 00:02:16 +00:00
4ed5ab769c Update dependency @types/react to v19.2.9
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 1m59s
2026-01-22 00:01:54 +00:00
ec31419b81 Merge pull request 'Update dependency @directus/sdk to v21' (#290) from renovate/directus-sdk-21.x into main
All checks were successful
test-build / build (push) Successful in 2m52s
renovate / renovate (push) Successful in 2m41s
Reviewed-on: #290
2026-01-20 21:06:29 +00:00
083a5e77da Update dependency @directus/sdk to v21
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
test-build / build (pull_request) Successful in 3m24s
2026-01-20 21:00:00 +00:00
4c065f99ab Merge pull request 'Update astro monorepo' (#292) from renovate/astro-monorepo into main
All checks were successful
renovate / renovate (push) Successful in 1m47s
test-build / build (push) Successful in 3m22s
Reviewed-on: #292
2026-01-20 20:58:25 +00:00
24 changed files with 1659 additions and 1996 deletions

View File

@@ -1,4 +1,4 @@
name: release-image name: release-image-gitea
on: on:
push: push:
@@ -8,8 +8,35 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build:
runs-on: ubuntu-js
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 10.x
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24.13.0
cache: pnpm
- name: Install Dependencies
run: pnpm install
- name: Lint Code
run: pnpm lint
- name: Build Project
run: pnpm build
release: release:
runs-on: ubuntu-js runs-on: ubuntu-js
needs: build
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
@@ -21,13 +48,6 @@ jobs:
username: ${{ gitea.actor }} username: ${{ gitea.actor }}
password: ${{ secrets.REPOSITORY_TOKEN }} password: ${{ secrets.REPOSITORY_TOKEN }}
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY_HOST }}
username: ${{ vars.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_SECRET }}
- name: Create Kubeconfig - name: Create Kubeconfig
run: | run: |
mkdir $HOME/.kube mkdir $HOME/.kube
@@ -55,9 +75,23 @@ jobs:
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=tag type=ref,event=tag
type=sha,format=long
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
images: | images: |
${{ vars.REPOSITORY_HOST }}/${{ gitea.repository }} ${{ vars.REPOSITORY_HOST }}/${{ gitea.repository }}
${{ vars.REGISTRY_HOST }}/images/site-profile
- name: Get Version Info
id: version
run: |
echo "version=$(git describe --tags --always)" >> $GITHUB_OUTPUT
echo "commit=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
if git describe --tags --exact-match HEAD 2>/dev/null; then
echo "is_release=true" >> $GITHUB_OUTPUT
else
echo "is_release=false" >> $GITHUB_OUTPUT
fi
- name: Build and Push Image - name: Build and Push Image
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
@@ -67,6 +101,10 @@ jobs:
platforms: linux/amd64 platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ steps.version.outputs.version }}
COMMIT_SHA=${{ steps.version.outputs.commit }}
IS_RELEASE=${{ steps.version.outputs.is_release }}
file: ./Dockerfile file: ./Dockerfile
- name: ntfy Success - name: ntfy Success

View File

@@ -0,0 +1,136 @@
name: release-image-harbor
on:
push:
tags:
- 2.*
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-js
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 10.x
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24.13.0
cache: pnpm
- name: Install Dependencies
run: pnpm install
- name: Lint Code
run: pnpm lint
- name: Build Project
run: pnpm build
release:
runs-on: ubuntu-js
needs: build
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY_HOST }}
username: ${{ vars.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_SECRET }}
- name: Create Kubeconfig
run: |
mkdir $HOME/.kube
echo "${{ secrets.KUBECONFIG_BUILDX }}" > $HOME/.kube/config
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
driver: kubernetes
driver-opts: |
namespace=gitea
qemu.install=true
buildkitd-config-inline: |
[registry."docker.io"]
mirrors = ["harbor.alexlebens.net/proxy-hub.docker/"]
- name: Available Platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Extract Metadata
id: meta
uses: docker/metadata-action@v5
with:
tags: |
type=ref,event=branch
type=ref,event=tag
type=sha,format=long
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
images: |
${{ vars.REGISTRY_HOST }}/images/site-profile
- name: Get Version Info
id: version
run: |
echo "version=$(git describe --tags --always)" >> $GITHUB_OUTPUT
echo "commit=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
if git describe --tags --exact-match HEAD 2>/dev/null; then
echo "is_release=true" >> $GITHUB_OUTPUT
else
echo "is_release=false" >> $GITHUB_OUTPUT
fi
- name: Build and Push Image
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ steps.version.outputs.version }}
COMMIT_SHA=${{ steps.version.outputs.commit }}
IS_RELEASE=${{ steps.version.outputs.is_release }}
file: ./Dockerfile
- name: ntfy Success
uses: niniyas/ntfy-action@master
if: success()
with:
url: '${{ secrets.NTFY_URL }}'
topic: '${{ secrets.NTFY_TOPIC }}'
title: 'Release Success - Site Profile'
priority: 3
headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}'
tags: action,successfully,completed
details: 'Image for Site Profile has been released!'
icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png'
- name: ntfy Failed
uses: niniyas/ntfy-action@master
if: failure()
with:
url: '${{ secrets.NTFY_URL }}'
topic: '${{ secrets.NTFY_TOPIC }}'
title: 'Release Failure - Site Profile'
priority: 4
headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}'
tags: action,failed
details: 'Image for Site Profile has failed to be released.'
icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png'
actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/actions?workflow=release-image.yml", "clear": true}]'
image: true

View File

@@ -13,7 +13,7 @@ on:
jobs: jobs:
renovate: renovate:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: ghcr.io/renovatebot/renovate:42 container: ghcr.io/renovatebot/renovate:43
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6

View File

@@ -24,7 +24,7 @@ jobs:
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@v6 uses: actions/setup-node@v6
with: with:
node-version: 24.12.0 node-version: 24.13.0
cache: pnpm cache: pnpm
- name: Install Dependencies - name: Install Dependencies

View File

@@ -1,8 +1,5 @@
ARG REGISTRY=docker.io ARG REGISTRY=docker.io
FROM ${REGISTRY}/node:24.12.0-alpine3.22 AS base FROM ${REGISTRY}/node:24.13.0-alpine3.22 AS base
LABEL version="2.1.4"
LABEL description="Astro based personal website"
ENV PNPM_HOME="/pnpm" ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH" ENV PATH="$PNPM_HOME:$PATH"
@@ -32,5 +29,8 @@ ENV SITE_URL=https://www.alexlebens.dev
ENV DIRECTUS_URL=https://directus.alexlebens.dev ENV DIRECTUS_URL=https://directus.alexlebens.dev
ENV PORT=4321 ENV PORT=4321
LABEL version="2.3.0"
LABEL description="Astro based personal website"
EXPOSE $PORT EXPOSE $PORT
CMD ["node", "./dist/server/entry.mjs"] CMD ["node", "./dist/server/entry.mjs"]

View File

@@ -2,23 +2,13 @@
Personal site used for information about myself and blog. Personal site used for information about myself and blog.
## Features ## Development
- 🐈 Simple And Beautiful
- 🖥️️ Responsive And Light/Dark mode
- 🐛 SiteMap & RSS Feed
- 🐝 Category Support
- 🐜 SEO and Responsiveness
- 🪲 Markdown And MDX
- 🏂🏾 Page Compression & Image Optimization
### Development Commands
With dependencies installed, you can utilize the following npm scripts to manage your project's development lifecycle: With dependencies installed, you can utilize the following npm scripts to manage your project's development lifecycle:
- `pnpm run dev`: Starts a local development server with hot reloading enabled. - `pnpm build`: Bundles your site into static files for production.
- `pnpm run preview`: Serves your build output locally for preview before deployment. - `pnpm dev`: Starts a local development server with hot reloading enabled.
- `pnpm run build`: Bundles your site into static files for production. - `pnpm preview`: Serves your build output locally for preview before deployment.
For detailed help with Astro CLI commands, visit [Astro's documentation](https://docs.astro.build/en/reference/cli-reference/). For detailed help with Astro CLI commands, visit [Astro's documentation](https://docs.astro.build/en/reference/cli-reference/).

View File

@@ -1,6 +1,5 @@
import { defineConfig, passthroughImageService, sharpImageService } from 'astro/config'; import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import node from '@astrojs/node'; import node from '@astrojs/node';
import partytown from '@astrojs/partytown'; import partytown from '@astrojs/partytown';
import react from '@astrojs/react'; import react from '@astrojs/react';
@@ -9,8 +8,6 @@ import sitemap from '@astrojs/sitemap';
import tailwindcss from '@tailwindcss/vite'; import tailwindcss from '@tailwindcss/vite';
import icon from 'astro-icon'; import icon from 'astro-icon';
import swup from '@swup/astro'; import swup from '@swup/astro';
import rehypePrettyCode from 'rehype-pretty-code';
import { transformerCopyButton } from '@rehype-pretty/transformers';
const getSiteURL = () => { const getSiteURL = () => {
if (process.env.SITE_URL) { if (process.env.SITE_URL) {
@@ -31,7 +28,6 @@ export default defineConfig({
prefetch: true, prefetch: true,
integrations: [ integrations: [
mdx(),
partytown(), partytown(),
react(), react(),
sitemap(), sitemap(),
@@ -67,24 +63,6 @@ export default defineConfig({
markdown: { markdown: {
syntaxHighlight: false, syntaxHighlight: false,
rehypePlugins: [
[
rehypePrettyCode,
{
theme: {
light: 'github-light',
dark: 'github-dark-dimmed',
},
keepBackground: false,
transformers: [
transformerCopyButton({
visibility: 'always',
feedbackDuration: 2500,
}),
],
},
],
],
}, },
plugins: { plugins: {

View File

@@ -1,7 +1,7 @@
{ {
"name": "site-profile", "name": "site-profile",
"type": "module", "type": "module",
"version": "2.1.4", "version": "2.3.0",
"homepage": "https://www.alexlebens.dev", "homepage": "https://www.alexlebens.dev",
"bugs": { "bugs": {
"url": "https://gitea.alexlebens.dev/alexlebens/site-profile/issues", "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/issues",
@@ -28,57 +28,56 @@
}, },
"dependencies": { "dependencies": {
"@astrojs/check": "^0.9.6", "@astrojs/check": "^0.9.6",
"@astrojs/mdx": "^4.3.13", "@astrojs/node": "^9.5.2",
"@astrojs/node": "^9.5.1",
"@astrojs/partytown": "^2.1.4", "@astrojs/partytown": "^2.1.4",
"@astrojs/react": "^4.4.2", "@astrojs/react": "^4.4.2",
"@astrojs/rss": "^4.0.14", "@astrojs/rss": "^4.0.15",
"@astrojs/sitemap": "^3.6.0", "@astrojs/sitemap": "^3.7.0",
"@directus/sdk": "^20.3.0", "@directus/sdk": "^21.0.0",
"@giscus/react": "^3.1.0", "@giscus/react": "^3.1.0",
"@iconify-json/mdi": "^1.2.3", "@iconify-json/mdi": "^1.2.3",
"@iconify-json/pajamas": "^1.2.15", "@iconify-json/pajamas": "^1.2.15",
"@iconify-json/simple-icons": "^1.2.64", "@iconify-json/simple-icons": "^1.2.69",
"@playform/compress": "^0.2.0", "@playform/compress": "^0.2.1",
"@rehype-pretty/transformers": "^0.13.2", "@swup/astro": "^1.7.0",
"@swup/astro": "1.7.0",
"@tailwindcss/postcss": "^4.1.18", "@tailwindcss/postcss": "^4.1.18",
"@tailwindcss/vite": "^4.1.18", "@tailwindcss/vite": "^4.1.18",
"@types/react": "^19.2.7", "@types/react": "^19.2.10",
"@types/unist": "^3.0.3", "@types/unist": "^3.0.3",
"astro": "^5.16.6", "astro": "^5.17.1",
"astro-compressor": "^1.2.0", "astro-compressor": "^1.2.0",
"astro-icon": "^1.1.5", "astro-icon": "^1.1.5",
"marked": "^17.0.1",
"marked-shiki": "^1.2.1",
"mdast-util-to-string": "^4.0.0", "mdast-util-to-string": "^4.0.0",
"motion": "^12.23.26", "motion": "^12.31.0",
"preline": "^3.2.3", "preline": "^4.0.1",
"react": "^19.2.3", "react": "^19.2.4",
"react-dom": "^19.2.3", "react-dom": "^19.2.4",
"reading-time": "^1.5.0", "reading-time": "^1.5.0",
"rehype-pretty-code": "^0.14.1",
"sharp": "^0.34.5", "sharp": "^0.34.5",
"sharp-ico": "^0.1.5", "sharp-ico": "^0.1.5",
"shiki": "^3.20.0", "shiki": "^3.22.0",
"tailwindcss": "^4.1.18", "tailwindcss": "^4.1.18",
"ultrahtml": "^1.6.0" "ultrahtml": "^1.6.0"
}, },
"devDependencies": { "devDependencies": {
"@eslint-react/eslint-plugin": "^2.4.0", "@eslint-react/eslint-plugin": "^2.9.4",
"@tailwindcss/forms": "^0.5.11", "@tailwindcss/forms": "^0.5.11",
"@tailwindcss/typography": "^0.5.19", "@tailwindcss/typography": "^0.5.19",
"astro-icon": "^1.1.5", "astro-icon": "^1.1.5",
"eslint": "^9.39.2", "eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8", "eslint-config-prettier": "^10.1.8",
"eslint-plugin-astro": "^1.5.0", "eslint-plugin-astro": "^1.5.0",
"eslint-plugin-format": "^1.1.0", "eslint-plugin-format": "^1.3.1",
"eslint-plugin-react": "^7.37.5", "eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.26", "eslint-plugin-react-refresh": "^0.5.0",
"prettier": "^3.7.4", "prettier": "^3.8.1",
"prettier-plugin-astro": "^0.14.1", "prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.7.2", "prettier-plugin-tailwindcss": "^0.7.2",
"timeago.js": "^4.0.2", "timeago.js": "^4.0.2",
"typescript": "5.9.3", "typescript": "^5.9.3",
"typescript-eslint": "8.53.1" "typescript-eslint": "^8.54.0"
} }
} }

3156
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -12,10 +12,10 @@ const { posts } = Astro.props;
<section class="mx-auto mb-10 max-w-[85rem] px-4 py-8 sm:px-6 lg:px-8 2xl:max-w-full"> <section class="mx-auto mb-10 max-w-[85rem] px-4 py-8 sm:px-6 lg:px-8 2xl:max-w-full">
<div class="text-left"> <div class="text-left">
<h2 <h2
id="selected-articel" id="recent-articles"
class="smooth-reveal-2 mb-4 text-5xl font-extrabold tracking-tight text-balance text-neutral-800 dark:text-neutral-200" class="smooth-reveal-2 mb-10 text-5xl font-extrabold tracking-tight text-balance text-neutral-800 dark:text-neutral-200"
> >
Older Articles Recent Posts
</h2> </h2>
</div> </div>

View File

@@ -10,12 +10,11 @@ interface Props {
} }
const { posts } = Astro.props; const { posts } = Astro.props;
const blogPosts = posts.slice(0, 5);
--- ---
<section class="smooth-reveal"> <section class="smooth-reveal">
{ {
blogPosts.map((b, index) => posts.map((b, index) =>
index % 2 === 0 ? ( index % 2 === 0 ? (
<BlogLeftSection <BlogLeftSection
title={b.title} title={b.title}

View File

@@ -20,7 +20,7 @@ const certificate = await directus.request(
}) })
); );
const baseClasses = ' rounded-xl flex flex-col'; const baseClasses = 'rounded-xl flex flex-col';
const borderClasses = 'border border-neutral-100 dark:border-stone-500/20'; const borderClasses = 'border border-neutral-100 dark:border-stone-500/20';
const bgColorClasses = const bgColorClasses =
'bg-neutral-100/80 hover:bg-neutral-100 dark:bg-neutral-800/60 dark:hover:bg-neutral-800/90'; 'bg-neutral-100/80 hover:bg-neutral-100 dark:bg-neutral-800/60 dark:hover:bg-neutral-800/90';
@@ -35,16 +35,16 @@ const shadowClasses = 'shadow-xs hover:shadow-md dark:shadow-md dark:hover:shado
</h3> </h3>
<div class="ml-8"> <div class="ml-8">
<h4 class="smooth-reveal-1 pt-5 text-2xl font-semibold text-neutral-800 dark:text-neutral-200"> <h4 class="smooth-reveal-1 pt-5 text-2xl font-semibold text-neutral-800 dark:text-neutral-200">
University College
</h4> </h4>
<ul class="space-y-4 py-3"> <ul class="space-y-4 py-3">
{ <div class="grid md:grid-cols-2 sm:grid-cols-1 gap-4">
education.map(({ institution, area, url }) => { {
return ( education.map(({ institution, area, url, graduationDate}) => {
<div class="smooth-reveal-cards mt-4 grid grid-cols-3 gap-4 rounded-xl"> return (
<div> <div class="smooth-reveal-cards mt-4 rounded-xl">
<div <div
class={`p-4 transition-all duration-300 md:p-5 ${shadowClasses} ${bgColorClasses} ${baseClasses} ${borderClasses}`} class={`p-4 md:p-6 transition-all duration-300 ${shadowClasses} ${bgColorClasses} ${baseClasses} ${borderClasses}`}
> >
<h3 class="flex flex-row text-lg font-bold text-neutral-800 dark:text-neutral-200"> <h3 class="flex flex-row text-lg font-bold text-neutral-800 dark:text-neutral-200">
<Icon <Icon
@@ -54,7 +54,7 @@ const shadowClasses = 'shadow-xs hover:shadow-md dark:shadow-md dark:hover:shado
{institution} {institution}
</h3> </h3>
<p class="mt-2 ml-7 text-xs font-medium text-neutral-600 uppercase dark:text-neutral-400"> <p class="mt-2 ml-7 text-xs font-medium text-neutral-600 uppercase dark:text-neutral-400">
{area} {area} - {new Date(graduationDate).getFullYear()}
</p> </p>
<div class="ml-6 flex"> <div class="ml-6 flex">
<a <a
@@ -72,10 +72,10 @@ const shadowClasses = 'shadow-xs hover:shadow-md dark:shadow-md dark:hover:shado
</div> </div>
</div> </div>
</div> </div>
</div> );
); })
}) }
} </div>
</ul> </ul>
</div> </div>
@@ -86,12 +86,12 @@ const shadowClasses = 'shadow-xs hover:shadow-md dark:shadow-md dark:hover:shado
Certificates Certificates
</h4> </h4>
<ul class="space-y-4 py-3"> <ul class="space-y-4 py-3">
{certificate.map(({ name, issuer, url }) => { <div class="grid md:grid-cols-2 sm:grid-cols-1 gap-4">
return ( {certificate.map(({ name, issuer, url }) => {
<div class="smooth-reveal-cards mt-4 grid grid-cols-3 gap-4 rounded-xl"> return (
<div> <div class="smooth-reveal-cards mt-4 rounded-xl">
<div <div
class={`p-4 transition-all duration-300 md:p-5 ${shadowClasses} ${bgColorClasses} ${baseClasses} ${borderClasses}`} class={`p-4 md:p-6 transition-all duration-300 ${shadowClasses} ${bgColorClasses} ${baseClasses} ${borderClasses}`}
> >
<h3 class="flex flex-row text-lg font-bold text-neutral-800 dark:text-neutral-200"> <h3 class="flex flex-row text-lg font-bold text-neutral-800 dark:text-neutral-200">
<Icon <Icon
@@ -119,9 +119,9 @@ const shadowClasses = 'shadow-xs hover:shadow-md dark:shadow-md dark:hover:shado
</div> </div>
</div> </div>
</div> </div>
</div> );
); })}
})} </div>
</ul> </ul>
</div> </div>
) )

View File

@@ -15,7 +15,7 @@ const experiences = await directus.request(
--- ---
<section <section
class:list={['flex flex-col gap-4', Astro.props.className]} class:list={['flex flex-col gap-8', Astro.props.className]}
> >
<h3 class="relative smooth-reveal-1 flex w-full items-center gap-3 pb-10 text-5xl text-neutral-800 dark:text-neutral-200">Experience</h3> <h3 class="relative smooth-reveal-1 flex w-full items-center gap-3 pb-10 text-5xl text-neutral-800 dark:text-neutral-200">Experience</h3>

View File

@@ -15,11 +15,14 @@ interface Props {
secondaryBtnURL?: string; secondaryBtnURL?: string;
src?: any; src?: any;
alt?: string; alt?: string;
rounded?: boolean;
} }
const roundedClasses = Astro.props.rounded ? "rounded-xl" : null;
--- ---
<section <section
class="mx-auto grid max-w-[85rem] gap-4 px-4 py-14 sm:px-6 md:grid-cols-2 md:items-center md:gap-8 lg:px-8 2xl:max-w-full" class="mx-auto grid max-w-340 gap-4 px-4 py-14 sm:px-6 md:grid-cols-2 md:items-center md:gap-8 lg:px-8 2xl:max-w-full"
> >
<div> <div>
<h1 <h1
@@ -48,7 +51,7 @@ interface Props {
<Image <Image
src={src} src={src}
alt={alt} alt={alt}
class="h-full w-[420px] scale-100 object-cover object-center" class={`h-full w-[420px] scale-100 object-cover object-center ${roundedClasses}`}
draggable="false" draggable="false"
loading="eager" loading="eager"
format="webp" format="webp"

View File

@@ -14,7 +14,7 @@ const posts = await directus.request(
); );
const recentPosts = posts const recentPosts = posts
.sort((a: Post, b: Post) => b.published_date.getTime() - a.published_date.getTime()) .sort((a: Post, b: Post) => (new Date(b.published_date).getTime()) - (new Date(a.published_date).getTime()))
.slice(0, 3); .slice(0, 3);
--- ---
@@ -25,9 +25,6 @@ const recentPosts = posts
> >
Latest Posts Latest Posts
</h1> </h1>
<p class="smooth-reveal mt-1 text-pretty text-neutral-600 dark:text-neutral-300">
More recent posts.
</p>
</div> </div>
<div class="grid gap-6 sm:grid-cols-2 lg:grid-cols-3"> <div class="grid gap-6 sm:grid-cols-2 lg:grid-cols-3">
{recentPosts.map((b) => <BlogCard post={b} />)} {recentPosts.map((b) => <BlogCard post={b} />)}

View File

@@ -2,37 +2,13 @@ import { readSingleton } from '@directus/sdk';
import directus from '@lib/directus'; import directus from '@lib/directus';
const global = await directus.request(readSingleton('site_global'));
export interface NavigationLink { export interface NavigationLink {
name: string; name: string;
url: string; url: string;
} }
const global = await directus.request(readSingleton('site_global'));
export const WorkInformation = [
{
name: 'Tech Startup',
position: 'Junior Web Developer',
location_type: 'On site',
location: 'Auckland, New Zealand',
url: 'https://techstartup.com',
startDate: '2024-01-01',
endDate: null,
summary:
'Developing and maintaining web applications using JavaScript, HTML, and CSS. Collaborating with the team to implement new features and fix bugs.',
highlights: ['Improved website performance by optimizing code'],
responsibilities: [
'Collaborated with senior developers to design and implement web applications using modern JavaScript frameworks.',
'Assisted in debugging and optimizing front-end code to ensure smooth user experiences.',
'Participated in code reviews and contributed to improving coding standards within the team.',
],
achievements: [
'Developing and maintaining web applications using JavaScript, HTML, and CSS. Collaborating with the team to implement new features and fix bugs.',
],
skills: ['React', 'Tailwind', 'GitHub'],
},
];
export const NavigationLinks: NavigationLink[] = [ export const NavigationLinks: NavigationLink[] = [
{ name: 'Home', url: '/' }, { name: 'Home', url: '/' },
{ name: 'Blog', url: '/blog/' }, { name: 'Blog', url: '/blog/' },
@@ -43,6 +19,7 @@ export const NavigationLinks: NavigationLink[] = [
export const FooterLinks: NavigationLink[] = [ export const FooterLinks: NavigationLink[] = [
{ name: 'RSS', url: '/rss.xml' }, { name: 'RSS', url: '/rss.xml' },
{ name: 'Gitea', url: '/https://gitea.alexlebens.dev' }, { name: 'Gitea', url: '/https://gitea.alexlebens.dev' },
{ name: 'Docs', url: '/https://docs.alexlebens.dev' },
]; ];
export const SEO = { export const SEO = {

View File

@@ -2,6 +2,8 @@ export type Global = {
name: string; name: string;
about: string; about: string;
about_description: string; about_description: string;
about_blog: string;
about_categories: string;
initials: string; initials: string;
email: string; email: string;
site_url: string; site_url: string;

View File

@@ -11,13 +11,11 @@ import Education from '@components/ui/sections/Education.astro';
import portraitImg from '@images/portrait.avif'; import portraitImg from '@images/portrait.avif';
const global = await directus.request(readSingleton('site_global')); const global = await directus.request(readSingleton('site_global'));
const description = 'About me.';
--- ---
<BaseLayout <BaseLayout
title="About Me" title="About Me"
description={description} description="About me."
structuredData={{ structuredData={{
'@context': 'https://schema.org', '@context': 'https://schema.org',
'@type': 'WebPage', '@type': 'WebPage',
@@ -25,7 +23,7 @@ const description = 'About me.';
'@id': Astro.url.href, '@id': Astro.url.href,
url: Astro.url.href, url: Astro.url.href,
name: `About | ${global.name}`, name: `About | ${global.name}`,
description: description, description: 'About me.',
isPartOf: { isPartOf: {
'@type': 'WebSite', '@type': 'WebSite',
url: global.site_url, url: global.site_url,
@@ -39,11 +37,12 @@ const description = 'About me.';
subTitle={global.about} subTitle={global.about}
src={portraitImg} src={portraitImg}
alt={global.portrait_alt} alt={global.portrait_alt}
rounded={true}
/> />
<section class="mx-auto max-w-[85rem] px-4 py-10 sm:px-6 lg:px-8 lg:py-14"> <section class="mx-auto max-w-340 px-4 py-10 sm:px-6 lg:px-8 lg:py-14">
<main class="relative grid max-w-7xl gap-12 p-8 max-sm:py-16 md:grid-cols-6 md:p-16 xl:gap-24"> <main class="relative grid grid-cols-1 md:grid-cols-6 gap-12 p-8 md:p-16 xl:gap-24 max-w-7xl mx-auto">
<div class="space-y-12 md:col-span-8"> <div class="space-y-12 col-span-1 md:col-span-6">
<Experience className="smooth-reveal-2" /> <Experience className="smooth-reveal-2" />
<Education className="smooth-reveal-2 mt-30" /> <Education className="smooth-reveal-2 mt-30" />
<Projects className="smooth-reveal-2 mt-30" /> <Projects className="smooth-reveal-2 mt-30" />

View File

@@ -4,6 +4,9 @@ import getReadingTime from 'reading-time';
import { readItems, readSingleton } from '@directus/sdk'; import { readItems, readSingleton } from '@directus/sdk';
import directus from '@lib/directus'; import directus from '@lib/directus';
import { marked } from 'marked';
import markedShiki from 'marked-shiki';
import { createHighlighter } from 'shiki';
import { getDirectusImageURL } from '@lib/directusFunctions'; import { getDirectusImageURL } from '@lib/directusFunctions';
import BaseLayout from '@layouts/BaseLayout.astro'; import BaseLayout from '@layouts/BaseLayout.astro';
import Image from '@components/ui/images/Image.astro'; import Image from '@components/ui/images/Image.astro';
@@ -23,6 +26,24 @@ const category: CollectionEntry<'categories'> = (await getCollection('categories
.filter((c) => c.slug === post.category) .filter((c) => c.slug === post.category)
.pop() as CollectionEntry<'categories'>; .pop() as CollectionEntry<'categories'>;
const readingTime = getReadingTime(post.content); const readingTime = getReadingTime(post.content);
const highlighter = await createHighlighter({
themes: ['github-light', 'github-dark', 'monokai'],
langs: ['typescript', 'python', 'css', 'html', 'yaml', 'bash', 'json'],
});
marked.use(markedShiki({
highlight(code, lang) {
return highlighter.codeToHtml(code, {
lang: lang || 'plaintext',
themes: {
light: 'github-light',
dark: 'github-dark',
},
defaultColor: false,
});
}
}));
const content = marked.parse(post.content);
--- ---
<BaseLayout <BaseLayout
@@ -126,7 +147,7 @@ const readingTime = getReadingTime(post.content);
<article <article
class="prose prose-blog sm:prose-lg dark:prose-invert max-w-none text-justify text-neutral-800 dark:text-neutral-200" class="prose prose-blog sm:prose-lg dark:prose-invert max-w-none text-justify text-neutral-800 dark:text-neutral-200"
> >
<div set:html={post.content} /> <div set:html={content} />
</article> </article>
<div <div

View File

@@ -5,8 +5,8 @@ import type { Post } from '@lib/directusTypes';
import directus from '@lib/directus'; import directus from '@lib/directus';
import BaseLayout from '@layouts/BaseLayout.astro'; import BaseLayout from '@layouts/BaseLayout.astro';
import BlogRecentCard from '@components/blog/BlogRecentCard.astro'; import BlogSelectedArticles from '@components/blog/BlogSelectedArticles.astro';
import BlogFeaturedArticle from '@components/blog/BlogFeaturedArticle.astro'; import BlogRecentArticles from '@components/blog/BlogRecentArticles.astro';
import HeroSection from '@components/ui/sections/HeroSection.astro'; import HeroSection from '@components/ui/sections/HeroSection.astro';
import blogImg from '@images/autumn_tree.png'; import blogImg from '@images/autumn_tree.png';
@@ -18,15 +18,15 @@ const posts = await directus.request(
sort: ['-published_date'], sort: ['-published_date'],
}) })
); );
const selectedPosts: Post[] = posts.filter((p) => p.selected); const selectedPosts: Post[] = posts.filter((p) => p.selected).slice(0, 4);
const recentPosts: Post[] = posts.filter(
const description = (p) => !selectedPosts.some((selected) => selected.slug === p.slug)
"Sharing what I've learned, one post at a time. I hope you find something useful."; ).slice(0, 6);
--- ---
<BaseLayout <BaseLayout
title="Blog" title="Blog"
description={description} description={global.about_blog}
structuredData={{ structuredData={{
'@context': 'https://schema.org', '@context': 'https://schema.org',
'@type': 'WebPage', '@type': 'WebPage',
@@ -34,7 +34,7 @@ const description =
'@id': Astro.url.href, '@id': Astro.url.href,
url: Astro.url.href, url: Astro.url.href,
name: `Blog | ${global.name}`, name: `Blog | ${global.name}`,
description: description, description: global.about_blog,
isPartOf: { isPartOf: {
'@type': 'WebSite', '@type': 'WebSite',
url: global.site_url, url: global.site_url,
@@ -43,10 +43,10 @@ const description =
}, },
}} }}
> >
<HeroSection title="Blog" subTitle={description} src={blogImg} alt={global.blog_image_alt} /> <HeroSection title="Blog" subTitle={global.about_blog} src={blogImg} alt={global.blog_image_alt} />
<BlogRecentCard posts={posts} /> <BlogSelectedArticles posts={selectedPosts} />
<BlogFeaturedArticle posts={selectedPosts} /> <BlogRecentArticles posts={recentPosts} />
</BaseLayout> </BaseLayout>
<script> <script>

View File

@@ -73,14 +73,11 @@ const categories = (await getCollection('categories'))
}, },
}; };
}); });
const description =
'Here are some of the general categories that I am interested in, including homelabs, technology, and Minnesota.';
--- ---
<BaseLayout <BaseLayout
title="All Categories" title="All Categories"
description={description} description={global.about_categories}
structuredData={{ structuredData={{
'@context': 'https://schema.org', '@context': 'https://schema.org',
'@type': 'WebPage', '@type': 'WebPage',
@@ -88,7 +85,7 @@ const description =
'@id': Astro.url.href, '@id': Astro.url.href,
url: Astro.url.href, url: Astro.url.href,
name: `All Categories | ${global.name}`, name: `All Categories | ${global.name}`,
description: description, description: global.about_categories,
isPartOf: { isPartOf: {
'@type': 'WebSite', '@type': 'WebSite',
url: global.site_url, url: global.site_url,
@@ -99,7 +96,7 @@ const description =
> >
<HeroSection <HeroSection
title="Categories" title="Categories"
subTitle={description} subTitle={global.about_categories}
src={categoryImg} src={categoryImg}
alt={global.categories_image_alt} alt={global.categories_image_alt}
/> />

View File

@@ -10,14 +10,11 @@ import HeroSectionAlt from '@components/ui/sections/HeroSectionAlt.astro';
import homeImg from '@images/autumn_mountain.png'; import homeImg from '@images/autumn_mountain.png';
const global = await directus.request(readSingleton('site_global')); const global = await directus.request(readSingleton('site_global'));
const description =
'Engineering the cloud by day, homelab by night, and exploring Minnesota in between.';
--- ---
<BaseLayout <BaseLayout
title="Home" title="Home"
description={description} description={global.about_description}
structuredData={{ structuredData={{
'@context': 'https://schema.org', '@context': 'https://schema.org',
'@type': 'WebPage', '@type': 'WebPage',
@@ -25,7 +22,7 @@ const description =
'@id': Astro.url.href, '@id': Astro.url.href,
url: Astro.url.href, url: Astro.url.href,
name: `Home | ${global.name}`, name: `Home | ${global.name}`,
description: description, description: global.about_description,
isPartOf: { isPartOf: {
'@type': 'WebSite', '@type': 'WebSite',
url: global.site_url, url: global.site_url,
@@ -36,7 +33,7 @@ const description =
> >
<HeroSection <HeroSection
title={`Hello, I'm <span class="text-steel dark:text-steel">Alex Lebens</span>`} title={`Hello, I'm <span class="text-steel dark:text-steel">Alex Lebens</span>`}
subTitle={description} subTitle={global.about_description}
primaryBtn="About Me" primaryBtn="About Me"
primaryBtnURL="/about" primaryBtnURL="/about"
src={homeImg} src={homeImg}

View File

@@ -1,8 +1,5 @@
// copy from https://github.com/delucis/astro-blog-full-text-rss // From https://github.com/delucis/astro-blog-full-text-rss
// see https://github.com/delucis/astro-blog-full-text-rss/blob/latest/src/pages/rss.xml.ts
// get more context
import { getContainerRenderer as getMDXRenderer } from '@astrojs/mdx';
import rss, { type RSSFeedItem } from '@astrojs/rss'; import rss, { type RSSFeedItem } from '@astrojs/rss';
import type { APIContext } from 'astro'; import type { APIContext } from 'astro';
import { transform, walk } from 'ultrahtml'; import { transform, walk } from 'ultrahtml';
@@ -14,13 +11,11 @@ import directus from '@lib/directus';
const global = await directus.request(readSingleton('site_global')); const global = await directus.request(readSingleton('site_global'));
export async function GET(context: APIContext) { export async function GET(context: APIContext) {
// Get the URL to prepend to relative site links. Based on `site` in `astro.config.mjs`.
let baseUrl = context.site?.href || global.site_url; let baseUrl = context.site?.href || global.site_url;
if (baseUrl.at(-1) === '/') { if (baseUrl.at(-1) === '/') {
baseUrl = baseUrl.slice(0, -1); baseUrl = baseUrl.slice(0, -1);
} }
// Load the content collection entries to add to our RSS feed.
const posts = await directus.request( const posts = await directus.request(
readItems('posts', { readItems('posts', {
filter: { published: { _eq: true } }, filter: { published: { _eq: true } },
@@ -48,7 +43,6 @@ export async function GET(context: APIContext) {
feedItems.push({ ...post, link: `/blog/${post.slug}/`, content }); feedItems.push({ ...post, link: `/blog/${post.slug}/`, content });
} }
// Return our RSS feed XML response.
return rss({ return rss({
title: global.name, title: global.name,
description: global.about, description: global.about,

View File

@@ -7,7 +7,7 @@
/* https://tailwindcss.com/docs/dark-mode */ /* https://tailwindcss.com/docs/dark-mode */
@custom-variant dark (&:where(.dark, .dark *)); @custom-variant dark (&:where(.dark, .dark *));
/* Add custom colors */ /* Custom colors */
@theme { @theme {
--color-midnight: #0c354d; --color-midnight: #0c354d;
--color-turquoise: #0da797; --color-turquoise: #0da797;
@@ -60,6 +60,30 @@
color var(--theme-transition), color var(--theme-transition),
border-color var(--theme-transition); border-color var(--theme-transition);
} }
/* Shiki syntax highlighting */
:root {
--shiki-fg: var(--shiki-light);
--shiki-bg: var(--color-neutral-200);
}
.dark {
--shiki-fg: var(--shiki-dark);
--shiki-bg: var(--color-neutral-800);
}
pre.shiki {
background-color: var(--shiki-bg) !important;
color: var(--shiki-fg) !important;
}
pre.shiki span {
color: var(--shiki-light);
}
.dark pre.shiki span {
color: var(--shiki-dark) !important;
}
} }
/* Content reveal animations */ /* Content reveal animations */