Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 232 Bytes

File metadata and controls

13 lines (9 loc) · 232 Bytes

Sitemap generation git precommit hook ( need for sitemap page + to update dates in sitemap file )

add this to .git/hooks/pre-commit

#!/bin/sh
ts-node generate-sitemap.ts
git add .

Manual sitemap generation:

yarn sitemap