website-content-updates #1
6
.gitignore
vendored
6
.gitignore
vendored
@@ -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
36
Makefile
Normal 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
804
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,7 +9,7 @@
|
||||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"astro": "^5.4.2",
|
||||
"astro": "^5.11.0",
|
||||
"astro-rehype-relative-markdown-links": "^0.18.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user