but luke you dont understand, i need my heckin javascripterino to make le epic ui with 65498417 billion lines of boilerplate and 9761 dependancies! get on with the times grandpa
Just for those that are interested, the reason that date is Jan 2 2006 is that it's actually Go's time formatting date and the full date is 1 month 2 day, 3 hours, 4 minutes, 5 seconds, 2006 years. So you can those numbers in your date format and make anything you want. (Jan 2, 06: 3:04) Would format all the dates with short month, single digit day, two digit year, and the hour:min afterward with the punctuation the way you like it. It's a super handy feature that I love coming from other languages. This is also why when he added Jan 6, it gave weird numbers but they weren't "6". It was actually printing the hour the post was created.
Love hugo! A while ago I made a 1-hour (ish) MVP, and used Hugo for the marketing site, as soon as you get used to the templating language and such, it's awesome. Especially with something like netlify CMS.
Hello Luke very nice video, I only have experience with c# and unity because JavaScript was such a mess for me back then. One thing I wanna ask you is what is the webcam you are using ? I didn't notice but then I remembered I'm looking for a nice affordable webcam and I notice ur webcam it's very good with good lighting,I'm wondering what camera is it
I don't know if this may still be useful for you, but Luke has a section on his website where he lists all the technology he uses (including hardware like webcams). It is listed as "🖥Programs I use and recommend". The webcam is a Logitech C920, btw.
I know I'm a little late watching your hugo videos but I am dying to see the scripting of shortcodes. Everything you have shown so far could easily be used in partials, but the short code scripting you showed with the images is far more useful in you're content pages. Please do not forget the next installment. I need to know.
Hugo developers are using the default package for time encoding. The reference makes more sense when you list it out as follows 01/02 03:04:05PM '06 -0700 aka 1234567
If anyone's wondering about the prepended dot, just think of it like some context is passed inside the code block implicitly. Inside the 'range' block, the context is a single page; so I read it like "page.Summary" or "if page.Truncated".
Two possibilities: 1. Make locally and upload the directory to your website. 2. Use a site like Github and only change the source, and then you can tell Github to log into a server and update it when it receives a new commit. See this file, which uses Github secrets to log into the hosting server and update it: github.com/LukeSmithxyz/landchad/blob/master/.github/workflows/upload.yml
What are good resources for learning more on how to write the articles themselves? I want to start blogging in markdown and being able to include those in a page like shown here. Any suggestions are appreciated
If you mean the syntax of Markdown, Luke has videos on it. If your blog will be related to veganism in any way (like I assume based on your RUclips channel), it'd be cool if you linked it on your RUclips account (in the "about" tab) or somewhere -- I'd be interested in hearing from a fellow vegan Luke's viewer, I imagine you could be an interesting person with interesting takes.
Damn that's dope, it's quite intuitive. I was thinking of making a nextjs site but honestly i kinda hate it, so many fckin node modules lol. can hugo do stuff like a long html file of several and break it up in other smaller markdown files based on, or access parts of an HTML file based on tags (html tags like , etc) ? maybe this is something that people would do just scripting in the command line but maybe hugo can do it too in an easier way
That weird arbitrary date is a Go stdlib thing. I never liked it since if you get it slightly wrong, you don't get an error but just a subtly wrong result.
Hi Luke, I'm really curious, can we use react to add designs into hugo? Also when we download a template like "docsy" is there a way to edit the total design of the page (headers and footers) and create a different look with it?
So I could be wrong so please correct me but: Isn't SSG the same as using a web server and caching the static content on a CDN indefinitely or until a purge api call? I get that it statically renders the page at build time and then puts it on a CDN but isn't it the same as Prefetching content for a CDN from a webServer? Plus with a webServer you can dynamically create live content and web sockets and stuff if needed. I just don't see the appeal of an Static Site Generator like Hugo over a webserver like Fiber and a CDN with Purge and Prefetch APIs. Except for not having to create a local server for free at home (can be a pain). Please do tell me what it is I am missing from the equation. I would appreciate the insight.
Can you even call this static anymore? I mean technically it is but it looks and feels exactly like dynamic server-side scripting, just without the automation.
It literally creates a static site in every sense of the word. The real question is why someone would ever have a website run this logic and generate pages on every click when they could just do this.
@@LukeSmithxyz Probably most of the time the reason isn't even the user experience but the admin wanting to write articles with a web interface. But what I meant was that if you factor in caching it's not that different anymore. In the old days many dynamic scripts would just write the rendered template to disk to avoid rerendering it all the time. Nowadays cgi has fallen out of favor so it's usually just a application server with a server like varnish or nginx in front of it. It has gone from some webserver with largely static content and a few dynamic pages to websites being their own program and I can't even go complain about it because decoupling urls from the actual filesystem can do a lot for security.
@Luke Smith or anyone else, I'm a network eng with LPIC-1 knowledge of linux, I'd love to build my own website with Hugo. Is it hard to learn, do I need to know HTML or CSS prior to trying Hugo? Thanks, love your channel, Paul
Knowing HTML and CSS is massively useful for any kind of web development. That being said, HTML is one of the easiest things to learn in all of computing. It's basically just fancy syntax for text, and is something easily picked up on. I'd say CSS is fairly different, but also really easy to pick up. It amounts to grouping your styles together, then giving those groups to the HTML. It takes very little effort to get something up and running, and styling it further is something you can easily add on later. There's crash courses for both that are only a couple hours long, and give you a working knowledge of them. Learning Hugo is going to take a lot more effort, but you'll quickly see progress. As you learn more about it, the more you can add to it. By the time you're comfortable with it, you'll already have made the website. Then it's just a matter of practicing it and becoming more efficient.
if you use Hugo for this website it is not worth it at all just use Javascript. Hugo compiles go HTML/CSS/JS anyway. I dont understand why people use hugo framework. js is much easier and faster.
I like Hugo for its simplicity but it took me less time learn JavaScript and NextJS to create my static site generator. Yet it's lighter than the site made with Hugo.
@@ericgrasby6207 Given I'm a programmer, that was my path to least resistance. It sounds crazy but I was able to get my site up and running within 2 days!
i don't get it. can you get money for this? html was never a problem. with this approach you need to know the complex stuff to have the computer write html... which was never the problem. the problem is and always will be the complex stuff and logic. and setting things up, configuring environments, etc.
Short Term you have to learn a lot with Hugo. Long term it will make a lot things easier to mantain and to manage. Making money with it shouldn't be a big problem as well.
I’m so glad you’re finally looking into Hugo. A neighbor of mine recommended it and I never looked back.
but luke you dont understand, i need my heckin javascripterino to make le epic ui with 65498417 billion lines of boilerplate and 9761 dependancies! get on with the times grandpa
I'm learning Hugo and at first I found it a bit confusing, but with videos like this the path is much more passable. Thank you very much.
Just for those that are interested, the reason that date is Jan 2 2006 is that it's actually Go's time formatting date and the full date is 1 month 2 day, 3 hours, 4 minutes, 5 seconds, 2006 years. So you can those numbers in your date format and make anything you want. (Jan 2, 06: 3:04) Would format all the dates with short month, single digit day, two digit year, and the hour:min afterward with the punctuation the way you like it. It's a super handy feature that I love coming from other languages.
This is also why when he added Jan 6, it gave weird numbers but they weren't "6". It was actually printing the hour the post was created.
When the next video in this interesting series?
Love hugo! A while ago I made a 1-hour (ish) MVP, and used Hugo for the marketing site, as soon as you get used to the templating language and such, it's awesome. Especially with something like netlify CMS.
super helpful bro! would love more hugo tutorials!
Would be great to see another Hugo video soon. You are doing a very good job.
Thank you Sir for increasing my knowledge.
Another great Video. Waiting for the Next one!!
24:11 based
Dude THANK you this answered a question I'd had for YEARS
We need more Hugo tutorials from you. We want to know the complex, the cool stuff. How to get the pure power out of Hugo?
24:11 luke!
Grateful for this series Luke
tbh .. even as a senior Fullstack engineer personally I'd rather use wordpress
Thanks for the ideas in your video. I am looking to use Hugo for a consultancy that I am starting. I think I will your theme and riff from there.
More Hugo content, please!
Hello Luke very nice video, I only have experience with c# and unity because JavaScript was such a mess for me back then.
One thing I wanna ask you is what is the webcam you are using ? I didn't notice but then I remembered I'm looking for a nice affordable webcam and I notice ur webcam it's very good with good lighting,I'm wondering what camera is it
I don't know if this may still be useful for you, but Luke has a section on his website where he lists all the technology he uses (including hardware like webcams). It is listed as "🖥Programs I use and recommend". The webcam is a Logitech C920, btw.
I know I'm a little late watching your hugo videos but I am dying to see the scripting of shortcodes. Everything you have shown so far could easily be used in partials, but the short code scripting you showed with the images is far more useful in you're content pages. Please do not forget the next installment. I need to know.
Hugo developers are using the default package for time encoding. The reference makes more sense when you list it out as follows 01/02 03:04:05PM '06 -0700 aka 1234567
If anyone's wondering about the prepended dot, just think of it like some context is passed inside the code block implicitly. Inside the 'range' block, the context is a single page; so I read it like "page.Summary" or "if page.Truncated".
Is it just Go template?
@@kexec. Yep
From what I understand, the prepended dot differentiates an object, vs a function.
{{Good old Luke is finally back with good stuff }}
can you do a little tutorial on setting up auto-builds for the site? or do you always manually build and then only put the result on github?
Two possibilities:
1. Make locally and upload the directory to your website.
2. Use a site like Github and only change the source, and then you can tell Github to log into a server and update it when it receives a new commit. See this file, which uses Github secrets to log into the hosting server and update it:
github.com/LukeSmithxyz/landchad/blob/master/.github/workflows/upload.yml
Just write a bash script and move the public directory to your server. Ezpz
Your bad decisions and your problems always start with choosing WordPress
What are good resources for learning more on how to write the articles themselves?
I want to start blogging in markdown and being able to include those in a page like shown here. Any suggestions are appreciated
If you mean the syntax of Markdown, Luke has videos on it.
If your blog will be related to veganism in any way (like I assume based on your RUclips channel), it'd be cool if you linked it on your RUclips account (in the "about" tab) or somewhere -- I'd be interested in hearing from a fellow vegan Luke's viewer, I imagine you could be an interesting person with interesting takes.
Damn that's dope, it's quite intuitive. I was thinking of making a nextjs site but honestly i kinda hate it, so many fckin node modules lol. can hugo do stuff like a long html file of several and break it up in other smaller markdown files based on, or access parts of an HTML file based on tags (html tags like , etc) ? maybe this is something that people would do just scripting in the command line but maybe hugo can do it too in an easier way
Great video. Thank you.
How to display aurthors with avatar on homepage ?
Not related to Hugo, but I’m configuring nvim again from scratch, do you recommend moving everything or do everything in Lua or simply use Vimscript?
That weird arbitrary date is a Go stdlib thing. I never liked it since if you get it slightly wrong, you don't get an error but just a subtly wrong result.
Hi Luke, I'm really curious, can we use react to add designs into hugo? Also when we download a template like "docsy" is there a way to edit the total design of the page (headers and footers) and create a different look with it?
man you saved my life
thanks
Luke in 19:50 You change opacity. Is that in LARBS or just your personal configuration ? If so can you add this function ?
It's a binding in my st build. Check the manual.
rtfm
So this is jekyll but for cool people
Fantastic. Can we do pagination and search
Please watch my video about hugo, tnx)
Thank you
You can't compare staticly generated with dynamic
, Saturday live stream!!
So I could be wrong so please correct me but:
Isn't SSG the same as using a web server and caching the static content on a CDN indefinitely or until a purge api call?
I get that it statically renders the page at build time and then puts it on a CDN but isn't it the same as Prefetching content for a CDN from a webServer?
Plus with a webServer you can dynamically create live content and web sockets and stuff if needed.
I just don't see the appeal of an Static Site Generator like Hugo over a webserver like Fiber and a CDN with Purge and Prefetch APIs.
Except for not having to create a local server for free at home (can be a pain).
Please do tell me what it is I am missing from the equation. I would appreciate the insight.
I'm here because of fireship and flamethrower js
Is Hugo the same or more powerful than Pug (former Jade)?
why Hugo instead of Jekyll?
Can you even call this static anymore? I mean technically it is but it looks and feels exactly like dynamic server-side scripting, just without the automation.
It literally creates a static site in every sense of the word. The real question is why someone would ever have a website run this logic and generate pages on every click when they could just do this.
@@LukeSmithxyz Probably most of the time the reason isn't even the user experience but the admin wanting to write articles with a web interface. But what I meant was that if you factor in caching it's not that different anymore. In the old days many dynamic scripts would just write the rendered template to disk to avoid rerendering it all the time. Nowadays cgi has fallen out of favor so it's usually just a application server with a server like varnish or nginx in front of it. It has gone from some webserver with largely static content and a few dynamic pages to websites being their own program and I can't even go complain about it because decoupling urls from the actual filesystem can do a lot for security.
Caching does not make dynamic sites equivalent to plain HTML files being served.
You can get a CMS for Hugo if you need it.
@Luke Smith or anyone else, I'm a network eng with LPIC-1 knowledge of linux, I'd love to build my own website with Hugo.
Is it hard to learn, do I need to know HTML or CSS prior to trying Hugo?
Thanks, love your channel,
Paul
Knowing HTML and CSS is massively useful for any kind of web development.
That being said, HTML is one of the easiest things to learn in all of computing. It's basically just fancy syntax for text, and is something easily picked up on.
I'd say CSS is fairly different, but also really easy to pick up. It amounts to grouping your styles together, then giving those groups to the HTML.
It takes very little effort to get something up and running, and styling it further is something you can easily add on later. There's crash courses for both that are only a couple hours long, and give you a working knowledge of them.
Learning Hugo is going to take a lot more effort, but you'll quickly see progress. As you learn more about it, the more you can add to it. By the time you're comfortable with it, you'll already have made the website. Then it's just a matter of practicing it and becoming more efficient.
i still like zola more
if you use Hugo for this website it is not worth it at all just use Javascript. Hugo compiles go HTML/CSS/JS anyway. I dont understand why people use hugo framework. js is much easier and faster.
Hyoooooo - go!
Go away, you're not the real Luke!
I like Hugo for its simplicity but it took me less time learn JavaScript and NextJS to create my static site generator. Yet it's lighter than the site made with Hugo.
I have a hard time believing that is true
@@ericgrasby6207 Given I'm a programmer, that was my path to least resistance. It sounds crazy but I was able to get my site up and running within 2 days!
i hope you don't work in a team
@@eotikurac I work in a team but I use C++, maybe I got high hopes due to this.
s n e e d
I'm gay
Ok, now this is epic!
i don't get it. can you get money for this? html was never a problem. with this approach you need to know the complex stuff to have the computer write html... which was never the problem. the problem is and always will be the complex stuff and logic. and setting things up, configuring environments, etc.
Short Term you have to learn a lot with Hugo. Long term it will make a lot things easier to mantain and to manage. Making money with it shouldn't be a big problem as well.
😩 ᴘʀᴏᴍᴏsᴍ
don't like the tan background
Luke addressed your comment at 16:45