Non è ancora in italiano, quindi la vedi in inglese.

How to deploy a Hugo site for free, from its public folder

Quick answer

To deploy a Hugo site for free, build it with hugo and drop the public folder on Convika's upload screen. Convika serves it at its own address, such as my-notes.convika.page, with every page at its own path and your 404.html for missing ones. Sign up free, with no credit card and no Git, and the site is live in a few minutes.

Deploy my Hugo site for free

Free plan: no credit card, 5 published pages, 10,000 page views a month.

On this page

To deploy a Hugo site for free, run hugo and drop the public folder it writes on Convika's upload screen. Convika serves the folder as a site at its own address, such as my-notes.convika.page: /posts/first/ opens public/posts/first/index.html, the CSS and images load from their own paths, and a missing page gets your 404.html. No Git, no server, and no credit card.

What to build, and the folder to drop

Hugo turns your Markdown, templates, and theme into plain HTML files. The public folder it writes is the whole site, and it is the only thing you upload.

Your projectBuild commandFolder to drop
Hugo, any themehugopublic

Drop public itself, not the project folder around it: the project also holds the theme's own index.html templates.

Set baseURL to your Convika address

Hugo writes baseURL into every link a template makes with .Permalink or absURL, and its default is https://example.org/. Build with the address your site will have, so those links stay on your site:

hugo --baseURL https://my-notes.convika.page/

Or set it once in hugo.toml:

baseURL = "https://my-notes.convika.page/"

Pick the name now and type the same one in Site URL on the upload screen. The field says "my-notes.convika.page is available." before anything goes up.

Deploy a Hugo site in 5 steps

1. Build the site

In the project folder, run:

hugo --baseURL https://my-notes.convika.page/

Hugo prints a table of the pages it wrote, and public holds the site. Drafts stay out unless you add --buildDrafts.

2. Sign up free

Sign up free, with no credit card. Convika opens the upload screen, Put your page or file online.

3. Drop the public folder

Drop public on Drop a file or folder here, or click Choose a folder. A .zip of the folder works too. Convika reads it in your browser and shows "Uploads as a site" with the number of files. Under Site URL, type the name you built with. Click Create my preview.

4. Check the private preview

Convika uploads the files and opens a private preview of the whole site. Click through the menu, a post, a tag page, and a path that doesn't exist, on your computer and your phone.

5. Publish it

Click Publish page. Under Who can open this page?, choose Public and click Next. The first time, Convika shows Publish free, and under it Publish without the Convika bar, which starts Pro with its free trial: 7 days free, then $12 a month, cancel any time before it ends. To publish on Free, click Publish free. The site is live at my-notes.convika.page.

Every page at its own path

Hugo writes pretty URLs: a post at content/posts/first.md becomes public/posts/first/index.html. Convika answers /posts/first/ with that file, and /posts/first gets the slash added first, so the page's relative links resolve as Hugo wrote them. Stylesheets, scripts, images, fonts, and index.xml load from their own paths.

A path the site doesn't have gets your theme's 404.html, with a 404 status. Hugo writes public/404.html from the 404 template in your theme or your own layouts folder.

Update the site at the same address

Run the same hugo command again. In Convika, open the site's page screen. Under Update from an HTML file, click Upload a new version and drop the new public folder, or its .zip. Click Upload as a new version, open the preview, then click Publish v2 at the same link and confirm with Publish. The address stays the same, and each earlier version keeps its own files, so you can go back to one.

What Free includes, and what Pro adds

FreePro
PriceNo credit card7 days free, then $12 a month
Sites live at once5100
Page views a month10,000100,000
A site's files together100 MB5 GB
Each HTML page4 MB4 MB
Who can open itPublicPublic, Private link, or Only people with the password
Convika barOn each pageNone

A password or a private link covers every path of the site. Every page of the site counts its visitors in your dashboard: where they came from and what they clicked.

Frequently asked questions

How do I deploy a Hugo site for free?

Run hugo --baseURL https://<name>.convika.page/, then sign up free on Convika and drop the public folder on the upload screen. Type the same name in Site URL, click Create my preview, and publish with Publish page, Public, Next, and Publish free. The Free plan needs no credit card.

Which folder do I upload?

public, the folder hugo writes. If you set publishDir in your config, drop that folder instead.

Do I need to change baseURL?

Yes, to your Convika address. Hugo's default is https://example.org/, and themes write it into links made with .Permalink. With --baseURL https://my-notes.convika.page/, every link points at your site.

Does my Hugo 404 page work?

Yes. A path the site doesn't have gets public/404.html with a 404 status.

Do I need Git or GitHub?

No. Drop the folder or a .zip straight from your computer. Nothing to push, and no build pipeline to set up.

How large can a Hugo site be?

Each HTML page up to 4 MB, and all of the site's files together up to 100 MB on Free, or 5 GB on Pro.

Next step

How to password protect an HTML page or website

A JavaScript password sits in the page source. Free: StatiCrypt or .htaccess. Paid: Netlify Pro $20, Vercel $20 a project, Tiiny Host $18, or Convika Pro.

Related articles

More ways to send your page

Skipbox

Cheap & fast GitHub Actions runners, unlimited for $39 a month

Your own machine keeps Docker layers and package caches between jobs. Switch by changing one runs-on line.

Start a free Skipbox trial⁠

Share this article

Your Hugo site, live at its own address

Drop the public folder. Convika serves every page at its path, counts visitors, and keeps the address when you upload a new build.

Deploy my Hugo site for free

Free plan: no credit card, 5 published pages, 10,000 page views a month.