small cleanup

This commit is contained in:
crapStone 2023-11-15 18:55:45 +01:00
parent ea68a82cd2
commit 70978b0c8c
No known key found for this signature in database
GPG key ID: D74B82E7CDD863FE
14 changed files with 23 additions and 18 deletions

View file

@ -2,13 +2,19 @@
## Custom domains
...
Custom domains can be used by creating a `.domains` file with the domain name, e.g.:
```text
codeberg.page
```
You also have to set some DNS records, see the [Codeberg Documentation](https://docs.codeberg.org/codeberg-pages/using-custom-domain/).
## Redirects
Redirects can be created with a `_redirects` file with the following format:
```
```text
# Comment
from to [status]
```
@ -30,7 +36,7 @@ from to [status]
Redirects all paths to `/index.html` for single-page apps.
```
```text
/* /index.html 200
```
@ -38,7 +44,7 @@ Redirects all paths to `/index.html` for single-page apps.
Redirects every path under `/articles` to `/posts` while keeping the path.
```
```text
/articles/* /posts/:splat 302
```