When I run hugo server
, I’m simply served a blank page on localhost. I’m very new to Hugo, so please be patient and please let me know if you need any other info in order to help me out!
Here’s my hugo.toml
:
baseURL = 'https://cryptabey.github.io/FreeTheWeb/'
languageCode = 'en-us'
title = 'My New Hugo Site'
contentDir = 'content'
enableEmoji = true
[module]
[[module.imports]]
path = "github.com/colinwilson/lotusdocs"
disable = false
[[module.imports]]
path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
disable = false
[markup]
[markup.tableOfContents]
endLevel = 3
startLevel = 1
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true # https://jdhao.github.io/2019/12/29/hugo_html_not_shown/
[markup.goldmark.parser]
[markup.goldmark.parser.attribute]
block = true
[params]
google_fonts = [["Inter", "300, 400, 600, 700"],["Fira Code", "500, 700"]]
sans_serif_font = "Inter"
secondary_font = "Inter"
mono_font = "Fira Code"
EDIT:
I figured it out! I was using the hugo apt
package, which is incredibly out of date. Installing a pre-built binary for the latest version from Hugo’s GitHub repository fixed it. If anybody is reading this, don’t use the apt
package, install a .deb
!