This commit is contained in:
Bjørn Erik Pedersen 2024-12-11 09:53:33 +01:00
commit b47376586a
No known key found for this signature in database
73 changed files with 705 additions and 163 deletions

View file

@ -11,11 +11,13 @@ toc: true
## Prerequisites
Please complete the following tasks before continuing:
1. [Create a Netlify account]
2. [Install Git]
3. [Create a Hugo site] and test it locally with `hugo server`
4. Commit the changes to your local repository
4. Push the local repository to your [GitHub], [GitLab], or [Bitbucket] account
5. Push the local repository to your [GitHub], [GitLab], or [Bitbucket] account
[Bitbucket]: https://bitbucket.org/product
[Create a Hugo site]: /getting-started/quick-start/
@ -34,64 +36,64 @@ Step 1
Step 2
: Select your deployment method.
![screen capture](netlify-step-02.png)
![screen capture](netlify-step-02.png)
Step 3
: Authorize Netlify to connect with your GitHub account by pressing the **Authorize Netlify** button.
![screen capture](netlify-step-03.png)
![screen capture](netlify-step-03.png)
Step 4
: Press the **Configure Netlify on GitHub** button.
![screen capture](netlify-step-04.png)
![screen capture](netlify-step-04.png)
Step 5
: Install the Netlify app by selecting your GitHub account.
![screen capture](netlify-step-05.png)
![screen capture](netlify-step-05.png)
Step 6
: Press the **Install** button.
![screen capture](netlify-step-06.png)
![screen capture](netlify-step-06.png)
Step 7
: Click on the site's repository from the list.
![screen capture](netlify-step-07.png)
![screen capture](netlify-step-07.png)
Step 8
: Set the site name and branch from which to deploy.
![screen capture](netlify-step-08.png)
![screen capture](netlify-step-08.png)
Step 9
: Define the build settings, press the **Add environment variables** button, then press the **New variable** button.
![screen capture](netlify-step-09.png)
![screen capture](netlify-step-09.png)
Step 10
: Create a new environment variable named `HUGO_VERSION` and set the value to the [latest version].
[latest version]: https://github.com/gohugoio/hugo/releases/latest
![screen capture](netlify-step-10.png)
![screen capture](netlify-step-10.png)
Step 11
: Press the "Deploy my new site" button at the bottom of the page.
![screen capture](netlify-step-11.png)
![screen capture](netlify-step-11.png)
Step 12
: At the bottom of the screen, wait for the deploy to complete, then click on the deploy log entry.
![screen capture](netlify-step-12.png)
![screen capture](netlify-step-12.png)
Step 13
: Press the **Open production deploy** button to view the live site.
![screen capture](netlify-step-13.png)
![screen capture](netlify-step-13.png)
## Configuration file