diff --git a/var/www/pages/default-page.html b/var/www/pages/default-page.html new file mode 100644 index 0000000..d14bf35 --- /dev/null +++ b/var/www/pages/default-page.html @@ -0,0 +1,136 @@ + + + + + + + + + + + + + Codeberg Pages - Static pages for your projects. + + + + +
+
+
+ +
+
Codeberg Pages.
+
Static pages for your projects.
+
+ +
+
+
+
add
+
Create a repository.
+
Create a repo named 'pages' in your user account or organisation.
+
+ +
+
cloud_upload
+
Push your content.
+
Push your static content, HTML, style, fonts or images.
+
+ +
+
emoji_flags
+
You're done!
+
Access your content via https://pages.codeberg.org/<username>/
+
+
+
+
+
+ + diff --git a/var/www/pages/index.php b/var/www/pages/index.php index c9ca209..7e45e47 100644 --- a/var/www/pages/index.php +++ b/var/www/pages/index.php @@ -9,24 +9,7 @@ function send_response($code, $message) { $request_url = filter_var($_SERVER["PHP_SELF"], FILTER_SANITIZE_URL); if ($request_url === "/" and $_SERVER["HTTP_HOST"] === "codeberg.eu") { - send_response(200, " - - - - Codeberg Pages - - -
-
-

Codeberg Pages. Static Pages for your Projects.

-

Create a repo named 'pages' in your user account or org, push static content, HTML, style, fonts, images.

-

Share your rendered content via:

https://<username>." . $_SERVER["HTTP_HOST"] . "

-

Welcome to Codeberg.org!

-
-
- - -"); + send_response(200, file_get_contents("./default-page.html")); } # Restrict allowed characters in request URI: @@ -120,4 +103,3 @@ if ($retval != 0) { ## If we could directly exec+echo raw output from above, we wouldn't need to execute command twice: passthru($command); -