added example update script

This commit is contained in:
Nevernown 2025-04-06 17:13:51 +02:00
parent 1160d624e9
commit f1bc884516
2 changed files with 13 additions and 2 deletions

View File

@ -11,8 +11,8 @@ const { frontmatter } = Astro.props;
<body>
<nav>
<a href="/">Home</a>
<a href="#">Posts</a>
<a href="#">Contact</a>
<a href="#">Breuken</a>
<a href="#">Machten</a>
</nav>
<article>
<slot /> <!-- your content is injected here -->

11
update.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
if [ "$1" == "" ]; then
echo "Excpected a commit message when running $0"
exit 1
else
npm run build
git add dist/
git commit -m "$1"
git push
fi