Initial commit

This commit is contained in:
Terry Hearst 2025-02-27 22:12:47 -05:00
commit 8a5bdc5ca8
3 changed files with 21 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
templates-*

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# Forgejo Custom Folder
This repo contains the Forgejo customizations for https://git.thearst3rd.com for reference purposes. Feel free to do whatever with these

17
download-templates.sh Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env zsh
# Download the given version of all the templates which exist
VERSION="v10.0.1"
TEMPLATES_DIR=templates-$VERSION
if [ -d $TEMPLATES_DIR ]; then
rm -rf $TEMPLATES_DIR
fi
for i in custom/templates/**/*.tmpl; do
newfile=$TEMPLATES_DIR${i#custom/templates}
echo Downloading $newfile
mkdir -p $(dirname $newfile)
curl -o $newfile "https://codeberg.org/forgejo/forgejo/raw/tag/v10.0.1/${i#custom/}"
done