From 0fdf576ec44b879d55a6c28edae91f0f2c04bf32 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 20 Apr 2024 13:46:18 +0200 Subject: [PATCH] Add index.html and robots.txt files to default build --- build.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/build.sh b/build.sh index b63ddda..8acea86 100755 --- a/build.sh +++ b/build.sh @@ -32,6 +32,29 @@ function generate-link() { if [ -z "${LINKGEN_NO_DEFAULT}" ]; then # LINKGEN_NO_DEFAULT is undefined, generate default links echo ":: Generating StarOpenSource's default links" + # Index + cat << EOF >> index.html + + + + Redirecting to nowhere + + +
+

Hello! You've landed on StarOpenSource's redirection website.

+

You can visit the source code for this website here.

+
+

Here are some links you can try out:

+

[website] [status] [/fs/] repos

+
+ + +EOF + # Robots + cat << EOF >> robots.txt +User-Agent: * +Disallow: / +EOF # General generate-link "website" "StarOpenSource's website" "https://staropensource.de" generate-link "status" "StarOpenSource Infrastructure Status" "https://status.staropensource.de"