Creating a Blog with Hugo and Github in 10 minutes

Поділитися
Вставка
  • Опубліковано 20 гру 2020
  • Today, we will create a deploy a Hugo blog on Github in just 10 minutes!
    ryan-schachte.com
    Notes for commands can be seen here:
    ryan-schachte.com/2020/12/21/...

КОМЕНТАРІ • 98

  • @sunnilabeouf
    @sunnilabeouf 3 роки тому +7

    Nice to see you back on youtube my man, I always benefit from your videos

  • @DarrenAddy
    @DarrenAddy 2 роки тому +5

    This was a terrific video. I understand enough about the Hugo Way (and git) now to follow everything, even though it went quickly. I hope you will do more Hugo stuff because it is awesome.

  • @twopercentohgee
    @twopercentohgee 3 роки тому +1

    i really love the clacking of the mechanical keyboard. it makes me feel like i'm in the room with you

  • @D-Dev
    @D-Dev 20 днів тому

    Amazing video. Explains all the parts I was struggling with and gives me some good tips!

  • @carlescortescosta8586
    @carlescortescosta8586 2 роки тому +1

    I have seen different ways of doing this, but the simplicity of yours is beautiful. Thanks

  • @natenatters
    @natenatters Рік тому +3

    Thanks! I have just followed the process and my blog is live :D It took a bit longer than 10 minutes (Updating homebrew, automating the github pages update with github actions), but a fun journey! Keep up the good content.

  • @123fourU
    @123fourU 2 роки тому

    Quick and fast tutorial Ryan well done sir will try this out to learn this Hugo thingy.

  • @schedarr
    @schedarr 2 роки тому

    A lot of topics covered very fast, I learned about submodules and hugo and published my new site. thanks

  • @jeremiahstephan6292
    @jeremiahstephan6292 Рік тому +19

    I got an error message when I first attempted the `git submodule` step at 07:59. The issue was that Hugo had already created a `public` directory for me. I deleted `public` before running the `git submodule` code and everything worked perfectly. Also, Github didn't publish my site instantly like it did for Ryan. I had to wait about 2 minutes before it loaded. But it did load and it looks fantastic. Hope this helps someone. Great video Ryan!

    • @kevinbenningshof
      @kevinbenningshof Рік тому

      Thanks for the tip! Simply deleting the dir was enough for running git submodule add -b main "URL/public"!

    • @lifewisdomforu
      @lifewisdomforu 5 місяців тому

      Thank you for the additional info. It did help me.

    • @adityaranjan3000
      @adityaranjan3000 Місяць тому

      but in my case , the public dir is not empty is has all the files like index.html , sitemap etc. and i am unable to delete it.

  • @ukkir7305
    @ukkir7305 7 місяців тому +1

    This tutorial is very well done. Everything that Ryan says is straight to the point. It's about the needed information - no show-off

    • @wesgould1
      @wesgould1 6 місяців тому

      i agree with @ukkir7305, this was very well done. Clear, concise, right to the point and help me from tearing my hair out.

    • @lifewisdomforu
      @lifewisdomforu 5 місяців тому

      Absolutely.

  • @herrwolken
    @herrwolken 2 роки тому

    This was awesome. This channel should be FAR more popular. And I think it soon will be.

  • @davidjnevin
    @davidjnevin 2 роки тому +1

    Thanks! Been looking for a git module solution with hugo for months!

  • @nareshmarri885
    @nareshmarri885 10 місяців тому

    past two weeks I'm struggling to publish my Hugo site . your video helps me a lot

  • @chaitanyashahare2734
    @chaitanyashahare2734 Рік тому +2

    Best video on creating a blog period.

  • @Wh1rlw1nd
    @Wh1rlw1nd 3 роки тому

    the most good and straight forward in this topic .. thanks man

  • @Blure
    @Blure 2 роки тому

    Thanks for the vid, didn't know nothing about this git submodule thing until today!

  • @tuggusboatus
    @tuggusboatus Рік тому +2

    Hey! Found this super easy to follow, and I now have my own small blog published thanks to you. One question, though: I built my site locally on my desktop PC, if I wanted to make edits from my laptop, would I just have to clone both repositories and copy the same folder structure?

  • @xx482
    @xx482 2 роки тому

    Thanks a lot i have created a hugo blog with the help of this tutorial
    i really appreciate your video .. thumbs up..

  • @tobefrank777
    @tobefrank777 2 роки тому

    Thanks!! This video is so helpful.

  • @tacks_
    @tacks_ 2 роки тому +1

    これ見て作ったら本当に10分とちょっとで作れました:)ありがとうございます!!
    Thank you X)

    • @keit7742
      @keit7742 Рік тому

      英語もできてすげー

  • @haydene3802
    @haydene3802 2 роки тому +5

    Question on posts. When adding new content like a post do you have to generate a new public folder to push each time?

    • @NostraDavid2
      @NostraDavid2 Рік тому +1

      Yes. Though what I'd do is create a cmd folder with a publish.sh script which would do the build, git add, commit and push for me.

  • @pitchgoesplaces
    @pitchgoesplaces 9 днів тому

    thanks for the tutorial, Ryan! just wondering if there are benefits to not also pushing the contents from 'thesimplengineerblog' up to blog repo, to serve as a source control for the raw source code change instead of just having the public repo changelog?

  • @PentagramSchematic
    @PentagramSchematic 3 роки тому +1

    extremely helpful video, though i did have to pause several times and iron out some kinks in my own code (i'm rusty...). thanks a lot for this video, ryan!

  • @NorthaHuang
    @NorthaHuang 3 роки тому

    This video helps me so much

  • @abdonasr1222
    @abdonasr1222 Рік тому +2

    Your tutorial is AWESOME! & directly to the point. I followed all the steps except creating two repositories, one where the actual content lives, and one for deployment. I didn't get it why we need 2 different repositories? Speaking of myself, I've created a single repository for the whole process, I found that this is more organized & less error-prone than 2 repositories approach for me.

    • @natenatters
      @natenatters Рік тому +1

      Could be useful if you have draft posts that you dont want to be in a public repository?

    • @DyleJoo
      @DyleJoo 4 місяці тому

      @@natenatters blog repository may be for the draft posts.

  • @ryanslab302
    @ryanslab302 3 роки тому +5

    You might need to run hugo server -D if your posts are not appearing because they are set as drafts.

  • @darknovax4978
    @darknovax4978 3 роки тому

    Good video, it help me so much!!!

  • @gittin_funky
    @gittin_funky 3 роки тому

    @The Simple Engineer what terminal emulator are you using?

  • @tokisuno
    @tokisuno Рік тому +1

    oh my god iain from smosh is teaching me hugo

  • @a_reallygoodusername
    @a_reallygoodusername 9 місяців тому +2

    Does anyone know what terminal that is, or what's installed to add that functionality? It's very useful compared to default Terminal in Mac!

  • @ajitshiva3282
    @ajitshiva3282 3 місяці тому

    Thank you so much

  • @PentagramSchematic
    @PentagramSchematic 3 роки тому +3

    i have a question though: how do i push future posts onto the repository from terminal? like do i just add the .md file directly into the public folder? then what?

    • @sachinmaurya3259
      @sachinmaurya3259 2 роки тому +1

      @@coyotewld all this needs to ne done in the repo were we are storing the code right ?
      I did the same..... made some changes in my config.toml file and push it to the public repo but there was no change in my production repo (static file that we get)
      As this production repo is added as submodule in our public repo so do we need to do something with submodules also to reflect the changes in the production repo ??

    • @lifewisdomforu
      @lifewisdomforu 5 місяців тому +1

      We should not add to the public folder directly. We need to move up one folder above the public and add any new posts in to post/yourpost.md then hugo -t again, it will generate the static content corresponding to your new post in to public folder. then you cd to your public folder then push it. It will be reflected on the production site.

    • @DyleJoo
      @DyleJoo 4 місяці тому

      @@lifewisdomforu Your comment was helpful!

  • @HeiSo1014
    @HeiSo1014 2 роки тому +6

    Just ran into your channel by typing in hugo tutorial. Not sure if your channel is geared towards beginners or people with coding experience. Great tutorial, love the straightforward, no nonsense approach. My one criticism is it was hard to follow which folder you were typing your commands in with all the cd commands. I think it would be beneficial for you to slow down and reiterate which folder you're in first. I was lost for a bit because I tried to push origin in my public folder but it said it was not a git repo.

  • @hidayatullah9816
    @hidayatullah9816 3 роки тому

    nice, finally i can make my hugo site deployed

  • @ScottLindelof
    @ScottLindelof 2 роки тому

    Thank you!!

  • @PauloSilva-sx3wl
    @PauloSilva-sx3wl 6 місяців тому +1

    This is cool information in the video. But, instead of generating two folders and using git submodule to manage the files, using a github action to generate the static files could be more ergonomic.

  • @dr.braddavis2194
    @dr.braddavis2194 Рік тому

    Hello- I realize this is an older video, but when I create a Hugo site, the "public" folder is already there. Is there a different way to code the step where you create the public folder? Thanks

    • @williambrace462
      @williambrace462 Рік тому +1

      the public folder thats created automatically is empty, you can just delete it and then run the command

  • @pediapets198
    @pediapets198 2 роки тому

    Nice Video

  • @sayanarijit
    @sayanarijit 3 роки тому +2

    The unread notification is giving me anxieties.

  • @nikkisherbalhabits4604
    @nikkisherbalhabits4604 Рік тому +1

    I had a tough time following this vid exactly the way it is. Maybe since I'm using Windows 11... idk. One workaround at 3:17 is inserting 'nano config.toml' and replacing the lines that need to be edited.

  • @getoutmore
    @getoutmore 2 роки тому

    Could also apply this for working with Mkdocs. Very helpful video. Thx :)

  • @ShadyNetworker
    @ShadyNetworker 2 роки тому +1

    Awesome video! Question: how did you get your CLI to echo the git status?

  • @joesiu4972
    @joesiu4972 3 місяці тому

    wow it worked thanks

  • @Doc_Tez
    @Doc_Tez 3 роки тому

    Your Terminal theme is really nice, would it be possible for you to share your .bashrc ?

  • @henrigrant4942
    @henrigrant4942 Рік тому +1

    hey man I love this tutorial, what terminal are you using? I love it!

    • @lifewisdomforu
      @lifewisdomforu 5 місяців тому +1

      It looks to me Ryan was using iTerm with fish shell with tide plugin or similar plugin or iTerm with zsh customized.

  • @wesgould1
    @wesgould1 6 місяців тому +1

    Does the working code repo have to be public? I know the production repo obviously needs to be but can I do this where my "blog" repo is private?
    I guess I could try and see what happens! :)

  • @plasmo91
    @plasmo91 8 місяців тому +1

    what terminal are you using? looks helpful

    • @bananiqus
      @bananiqus 3 місяці тому

      could be powerlevel10k

  • @borusuylrsrivaishnavi6005
    @borusuylrsrivaishnavi6005 9 годин тому

    im not getting github pages but all the files got downloaded into main
    help pls

  • @PhantomBroken
    @PhantomBroken Рік тому

    I need some help, everytime I put the submodule command, it comes up as 'blog/public' already exists and is not a valid git repo

  • @MMABeijing
    @MMABeijing 2 роки тому +1

    hi Ryan, just letting you know that the link to your notes (link you mention in the video, and that you left in your description box) is dead. If you could revive it that would be great, in any cases thank you for this very well done video. cheers

    • @TheSimpleEngineer
      @TheSimpleEngineer  2 роки тому

      Hey sorry about that. Let me try and revive the commands that were embedded in that post

    • @MMABeijing
      @MMABeijing 2 роки тому

      @@TheSimpleEngineer much appreciated, thank you Sir

  • @matheusvidal3537
    @matheusvidal3537 4 місяці тому

    did u forgot to put/commit the blog repository on github? It will be possible to just put a new .md file inside the content folder without having to use hugo again?

    • @DyleJoo
      @DyleJoo 4 місяці тому

      Good question. I wonder what is the purpose of having the blog repository.

  • @user-dn1yb3fz3t
    @user-dn1yb3fz3t 3 місяці тому

    Where is the config.toml in the directory of the theme file?

  • @LessonsinHistory
    @LessonsinHistory 3 роки тому

    Followed every step, once hosted the site looks completely different. The only difference was I already had a public folder that I deleted and replaced with your method. Also clicking any links gives me a 404... Any suggestions?

    • @gittin_funky
      @gittin_funky 3 роки тому

      I have the same issue. The site renders perfectly locally but when I upload to github it looks like the theme isnt applied and links give me 404 error - did you manage to fix this ?

    • @gittin_funky
      @gittin_funky 3 роки тому +1

      This fixed it for me
      sudo hugo server --theme= --bind=0.0.0.0 --baseUrl= --port=80 --appendPort=false

    • @LessonsinHistory
      @LessonsinHistory 3 роки тому +1

      @@gittin_funky base url in this video was wrong for me updated to use the full url to include my GitHub username and gg

    • @deewakarchakraborty4027
      @deewakarchakraborty4027 3 роки тому

      @@LessonsinHistory can you please elucidate, i think i am facing same issue

  • @user-dn1yb3fz3t
    @user-dn1yb3fz3t 3 місяці тому

    Why does 404 not found appear after entering the URL given by hugo server?

  • @shahabrasekh4732
    @shahabrasekh4732 2 роки тому

    with a ton of thanks, the question is: how i could update github content after adding another post maybe? the public folder or blog repo?

    • @HonouraryMember
      @HonouraryMember Рік тому +1

      go in public folder, git commit and push

    • @DyleJoo
      @DyleJoo 4 місяці тому

      blog repo then hugo -t . This will add the new post to the public folder.

  • @alexrook5604
    @alexrook5604 4 місяці тому

    The blog doesn't show anything before 2022 and there no entry has matching code.

  • @Nearnface
    @Nearnface Рік тому

    wowowow

  • @LukeAvedon
    @LukeAvedon Рік тому

    WOW

  • @drverboten
    @drverboten 2 роки тому

    Does anyone knows how to add authentication to a Hugo site?

  • @glyxonbiolabs239
    @glyxonbiolabs239 2 роки тому

    I think the link is not working

  • @davesullivan3198
    @davesullivan3198 2 роки тому

    This is a great video. Currently your website is down. 😞

  • @user-dn1yb3fz3t
    @user-dn1yb3fz3t 3 місяці тому

    对Win10用户可以说是一点都不友好了

  • @realisticprogramming
    @realisticprogramming Рік тому

    Good tutorial but too much of a focus on submodules and Github.

  • @stevenchild3882
    @stevenchild3882 2 роки тому

    学会了

  • @JuanSanchez-ik7wx
    @JuanSanchez-ik7wx Місяць тому

    this video totally sucks. Tiny text is black background.

  • @eygs493
    @eygs493 Рік тому

    thanks