From f871619d7fedbf973c249ad6e16c0fcf7e819cf8 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 2 Aug 2025 20:28:26 +0200 Subject: Update --- Makefile | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0c183ca..d0add7d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ MAKEFLAGS+=-j2 +PROJECTS_FILENAME = content/pages/projects.md dev: watch server @@ -8,5 +9,22 @@ watch: server: jbmafp -s -fetch-projects: - cd tools && python projects.py +update-projects: projects-header + cat content/pages/projects.fossil.md.part \ + content/pages/projects.github.md.part >> \ + content/pages/projects.md + +projects-header: + echo "---" > $(PROJECTS_FILENAME) + echo "title: Personal projects" >> $(PROJECTS_FILENAME) + echo "date: 2024-10-21T12:00:00+02:00" >> $(PROJECTS_FILENAME) + echo "url: projects.html" >> $(PROJECTS_FILENAME) + echo "type: page" >> $(PROJECTS_FILENAME) + echo "draft: false" >> $(PROJECTS_FILENAME) + echo "---\n" >> $(PROJECTS_FILENAME) + +update-fossil: + cd tools && bash fossil-projects.sh + +update-github: + cd tools && python github-projects.py -- cgit v1.2.3