website-content-updates #1

Merged
caperren merged 3 commits from website-content-updates into main 2025-07-04 07:31:55 +00:00
5 changed files with 450 additions and 402 deletions
Showing only changes of commit 65e05066ea - Show all commits

6
.gitignore vendored
View File

@@ -1,3 +1,9 @@
# Ignore everything under src/content, as they are dynamically added from obsidian
src/content/*
# Do not ignore config.ts in src/content since that necessary to import the dynamic content
!src/content/config.ts
# build output
dist/

36
Makefile Normal file
View File

@@ -0,0 +1,36 @@
# Makefile for caperren.com
DEV_WEBSITE_CONTENT_PATH := "/home/caperren/obsidian/00002 - Projects/Websites/caperren-com"
.PHONY: \
install \
fix \
astro_upgrade \
clean_dev_website_content \
update_dev_website_content \
build \
dev
default: dev
install:
npm install
fix:
npm audit fix
astro_upgrade:
npx @astrojs/upgrade
clean_dev_website_content:
find src/content -mindepth 1 ! -name 'config.ts' ! -name '.' -exec rm -rvf {} +
update_dev_website_content: clean_dev_website_content
cp -rv $(DEV_WEBSITE_CONTENT_PATH)/* src/content
build: update_dev_website_content
npm run build
dev: update_dev_website_content
npm run dev

804
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -9,7 +9,7 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.4.2",
"astro": "^5.11.0",
"astro-rehype-relative-markdown-links": "^0.18.1"
}
}

View File

@@ -6,7 +6,7 @@ import { glob } from 'astro/loaders';
// 3. Define your collection(s)
const experiences = defineCollection({
loader: glob({ pattern: "*.md", base: "src/content/experience" })
loader: glob({ pattern: "*.md", base: "src/content/experiences" })
})
const projects = defineCollection({