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!