Deploy Hugo Blog to Github Pages via Github Actions w/ a Custom Domain
ฝัง
- เผยแพร่เมื่อ 22 ก.ย. 2024
- We will build and deploy a blog powered by Hugo to Github Pages via a custom Github Actions and link a custom domain to the pages.
Blog post: theplaybook.de...
Repo: github.com/dhi...
PaperMod theme installation: github.com/adi...
Managing a custom domain for Github Pages: docs.github.co...
Linking domain to Github Pages: www.namecheap....
0:00 Intro
0:33 Install Hugo, create a new site & a page
1:48 Install the PaperMod theme & add the theme in config.yml
3:03 Add minimal content in docs/test.md and run locally
3:52 Create a git repository
4:52 Create a gh-pages branch in the repo *important*
5:20 Set read & write permissions for workflow *important*
5:33 Create the github actions deploy file
6:21 Edit the baseurl in config.yml to .github.io//
7:16 Explain the steps in Github Actions workflow
10:53 Link custom domain to Github Pages
Thank you so much for your script to make the deployment by github. Just an observation: i had to modify the version of hugo you are using in the script, because it told me that its deprecated that version, so i modify with the last one and it worked flawlessly
Awesome, glad that helped!
Could you tell where to add this?
Thanks for the comment bro, helped me out.
Thanks for the video. The explanation of the steps were very easy and clear.
Glad that helped!
Hello. A nice tut. Reproducing the steps, I found a tiny mistake: "--format" should be used instead of "-f". Probably they've changed it.
yes. and the config.yaml is changed to hugo.yaml
Hello Pasza, I have tried to follow this tut but when I get to 3:33 to run Hugo server to display the site locally, I get a blank screen. I have noticed your comment about --format instead of -f and then @reno2077 comment about the config.yaml being Hugo.yaml now. But still, I get a blank screen. What should I do??? :(
Thanks a lot!
Very helpful. Thanks for the detailed tutorial!
Random question - what's the name of the iterm (terminal) theme? I like the way it shows the dates, colors, and branches etc
powerlevel10k ohmyzsh
Appreciated the tutorial!!!!!!
Liquid Exception: Liquid syntax error (line 468): Variable '{{??}'
getting this error on action
I had this one too. It's gotta do with Jekyll trying to build the site anyway even though we are using hugo. This is the consequences of using the method in the video.
You can add `touch .nojekyll` to deploy.yml just before `git add .` The site finally builds and gets deployed properly.
@@hidayat_pcd dude you are a life saver i was scratching my head for hours on this one, thanks so much!!!!
wow thanks. I'm a GitHub noob but I always wanted to create my own blog for free.
Glad that helped!
thanks. good and usefull video.
I follwing the stps but I don't know why after I created the test.md it doesn't shows in the homepage
it will appear inside contents/docs
Hi , Great video.
Do you happen to know how to enlarge the width of text on pages and posts ? thanks
Thanks for this! I have been trying for days to get Hugo and Github running.
I am stuck at 5:27
Somehow I can not set my workflow permissions to "read and write permissions". The setting is not clickable for me.
Permission denied, fatal: unable to access … and "Process completed with exit code 128".
Can you help me out?
Hmm, thats weird; is that your own repo though?
Lol my page just shows a my readme file
is the gh-brand repo meant to not have the same content as main branch? I'm a complete git, github noob
my gh branch just have a readme lmao
nvm i restarted everything and jus followed the docs on Hugo and it worked
How to add content in it.!? Actually I done all the thing he said.. I want to update daily as well.. Can u do in it..
@@CSEAJMALAKRAMS I pushed my website using the steps from Hugo documentations
if I want to make changes I just push a commit to github and it automatically changes the website
@@sugoonese4024 thanks bro
What would be the ideal work flow for making a new post?
All you have to do would be to add an md file to your repository and push to the main branch!
I followed all the steps (I had to change some commandes becouse I don"t have touch and vim ) but it give a blank page. also my project folder didn't upload
i could take a look if you have a public github repo 👍
Tysm :)
Do you know what to do if the images are not displayed?
I have the same problem :(
@@hoherspatz9573 i solved it deploying on netlify
my hugo site deployed very well, but the look was bad, may I ask you for help?
What CMS would you recommend to connect to the blog?
My paper theme is insanely broken for some reason
:(
@@dhij Lol it's like the css isn't getting pushed somehow
Couldn't do it, it sucks how confusing git and github is. actions and all.
oh no, do take your time to learn one thing at a time! let me know if you have any specific question 👍
Sugo 했엉
Thank you! 🙂
How to add content in it..
No url found for submodule path 'themes/PaperMod' in .gitmodules
did you solve it?
@@Mike-ie6ku Yes!! I solved that. But, can't remember right now
@@0xShakhawat oh(