2022-08-03 14:47:12 +02:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "UTF-8" >
2022-08-04 23:39:10 +02:00
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" >
2022-08-03 14:47:12 +02:00
< link rel = "stylesheet" href = "node_modules/siimple/siimple.css" >
< link rel = "icon" href = "https://gitnet.fr/assets/img/logo.svg" type = "image/svg+xml" >
2022-08-04 23:14:17 +02:00
< link rel = "stylesheet" href = "assets/css/app.css" >
2022-08-03 14:47:12 +02:00
< title > Gitnet Pages< / title >
< / head >
< body >
< div class = "has-py-16 has-text-center header" >
< div class = "is-inline-flex" >
2022-08-14 16:06:05 +02:00
< a class = "navlink" href = "https://gitnet.fr" > < img src = "https://gitnet.fr/assets/img/logo.svg" width = "150" alt = "Gitnet" > < / a >
2022-08-03 14:47:12 +02:00
< / div >
< div class = "has-size-7 has-weight-bold has-mb-4 has-lh-none" >
Host < span class = "has-text-primary" > static websites< / span > with Gitnet Pages!
< / div >
< div class = "has-size-1 has-lh-heading has-mb-4" >
2022-08-14 16:07:18 +02:00
It's quick, easy, free & fast - just put your project's homepage, blog or web experiment into a Git repository at < a href = "https://gitnet.fr" > Gitnet< / a > , and we'll do the rest.
2022-08-03 14:47:12 +02:00
< / div >
< / div >
< div class = "container" >
2024-01-23 21:00:25 +01:00
< div class = "section is-full-mobile" >
< div class = "card has-shadow-md" >
< div >
< i class = "si-rocket has-size-9 has-text-primary" > < / i >
< / div >
< div class = "title is-4" > 1. Set up your repository< / div >
< p class = "has-text-justify has-mb-4" >
Create a public repository named < code > pages< / code > to make the site available at the main subdomain.
< / p >
< div class = "divider" > < / div >
< p class = "has-text-justify has-mb-4" >
You can also create a branch < code > pages< / code > in an existing repository:
2022-08-03 14:47:12 +02:00
2024-01-23 21:00:25 +01:00
< pre > < code > git switch --orphan pages
2022-08-03 14:47:12 +02:00
# In case if ignored files exist
git rm --cached -r .< / code > < / pre >
2024-01-23 21:00:25 +01:00
< / p >
< / div >
< / div >
< div class = "section is-full-mobile" >
< div class = "card has-shadow-md" >
< div >
< i class = "si-rocket has-size-9 has-text-primary" > < / i >
2022-08-03 14:47:12 +02:00
< / div >
2024-01-23 21:00:25 +01:00
< div class = "title is-4" > 2. Upload your files< / div >
< p class = "has-text-justify has-mb-4" >
Push your static content, HTML, style, fonts, images or anything else.
< / p >
2022-08-03 14:47:12 +02:00
< / div >
2024-01-23 21:00:25 +01:00
< / div >
< div class = "section is-full-mobile" >
< div class = "card has-shadow-md" >
< div >
< i class = "si-rocket has-size-9 has-text-primary" > < / i >
2022-08-03 14:47:12 +02:00
< / div >
2024-01-23 21:00:25 +01:00
< div class = "title is-4" > 3. You're done!< / div >
2024-01-23 21:02:18 +01:00
< p class = "has-text-justify has-mb-4" > Access your new website using this link:< / p >
< pre > https://USERNAME.gitnet.page[/REPOSITORY][/@BRANCH]< / pre >
2024-01-23 21:01:18 +01:00
< div class = "divider" > < / div >
2024-01-23 21:02:18 +01:00
< div class = "title is-5" > How to use a custom domain?< / div >
2024-01-23 21:00:25 +01:00
< p > To use a custom domain, create a file < code > .domains< / code > in your repository with the domain name you wish to use.
Then, add a DNS record for that domain:< / p >
< pre > CNAME [[< i > branch< / i > .]< i > repo< / i > .]< i > user< / i > .gitnet.page.< / pre >
< p > For apex domains where CNAME doesn't work:< / p >
< pre > ALIAS gitnet.page.
TXT [[< i > branch< / i > .]< i > repo< / i > .]< i > user< / i > .gitnet.page< / pre >
< p > If ALIAS isn't supported:< / p >
< pre > A 193.70.112.230
TXT [[< i > branch< / i > .]< i > repo< / i > .]< i > user< / i > .gitnet.page< / pre >
2022-08-03 14:47:12 +02:00
< / div >
< / div >
2024-01-23 21:04:01 +01:00
< div class = "divider" > < / div >
2022-08-03 14:47:12 +02:00
< / div >
< / body >
< / html >