Any suggestions on Hugo tutorials tailored to netlify?
Or even any books to read?
I have zero background in the topic.
Thank you!
Any suggestions on Hugo tutorials tailored to netlify?
Or even any books to read?
I have zero background in the topic.
Thank you!
hey @ng0177!
These are some tutorials other people have mentioned here in the forums:
• Quickstart Hugo
• Hugo deploy on Github+Netlify
• How I pushed my repository to Github
• Getting Started with Hugo and deploying to Netlify
I haven’t worked through these myself, so I can’t guarantee they are 100% up to date, but they are likely a good starting point!
Thanks I studied these plus dicussed with @amalik in Where are you from? - #98 by ng0177 but still cannot figure out how to get content, theme etc. from the site firstly created by default https://sim-val-tech.netlify.com/ into to my local hugo install under Linux to modify it. Any advice?
The ressources kindly posted by @perry could be completed by these blog posts :
https://dev.to/effingkay/build-your-own-blog-with-hugo-and-netlify-oi7
I studied these guides ( A Step-by-Step Guide: Victor-Hugo on Netlify | Netlify is my preference) plus importantly learnt some GitHub basic methods and commands but still face three problems:
git clone https://github.com/ng0177/victor-hugo.git
cd /path/to/victor-hugo/site
hugo server -D
git add .
git commit -m “message”
git remote add origin
git remote -v
git push origin master
I prefer the GitHub CLI as explained here. Thanks!
That’s a lot of studying! Nice work Responding here in order of the problems you mentioned:
git clone
, you’ll need to npm install
if you want to get things running locally. Your preferred guide mentions that step here: A Step-by-Step Guide: Victor-Hugo on Netlify
git remote add origin
also requires a repo URL that corresponds to the name “origin”- so the full command would be git remote add origin YOUR_URL
; GitHub has docs on that here: Managing remote repositories - GitHub Docs
Hope this is helpful!
Appreciate the help
npm start
vs hugo server
according to hugo-quickstart and hugo-netlify tutorials respectively. I prefer hugo server
under ./site/
but the css are missing.Is there a way to get hugo server
to work on my downlod of the automatically created github site - telling it where to find the css?
I do master github by now
Is it safe to replace the supplied netlify.toml
[build]
command = “npm run build”
publish = “dist”
by the one suggested on hugo quickstart
[build]
publish = “public”
command = “hugo --gc --minify”
once public
is replaced by dist
and version number is adapted? Thanks!
P.S. The correct link for hugo quickstart is this.
hugo server
from the root directory as opposed to ./site/
- if your root directory is called “site”, I would try to cd into that directory and enter just hugo server
in your terminalThanks for that I finally decided to go with Host on Netlify | Hugo
The default created by Netlify using npm
and no theme under themes
, I did not use, because it was not clear to me.
Appreciate all the help!