Simple Hugo Shortcodes absolutely MOG pathetic obese Wordpress!

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 79

  • @ItsHimItsThatGuy
    @ItsHimItsThatGuy 2 года назад +54

    I’m so glad you’re finally looking into Hugo. A neighbor of mine recommended it and I never looked back.

  • @kvykimo
    @kvykimo 2 года назад +26

    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

  • @JavierSam_Uy
    @JavierSam_Uy 2 года назад +9

    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.

  • @BrianGwaltney
    @BrianGwaltney 10 месяцев назад +2

    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.

  • @aa-xn5hc
    @aa-xn5hc Год назад +6

    When the next video in this interesting series?

  • @amando96
    @amando96 2 года назад +12

    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.

  • @futuregootecks
    @futuregootecks Год назад +4

    super helpful bro! would love more hugo tutorials!

  • @keutone626
    @keutone626 Год назад +3

    Would be great to see another Hugo video soon. You are doing a very good job.

  • @DabDavis7
    @DabDavis7 2 года назад +4

    Thank you Sir for increasing my knowledge.

  • @grybro
    @grybro 2 года назад +1

    Another great Video. Waiting for the Next one!!

  • @Tjk918
    @Tjk918 2 года назад +8

    24:11 based

  • @kaojaicam
    @kaojaicam 2 года назад +1

    Dude THANK you this answered a question I'd had for YEARS

  • @allokay3781
    @allokay3781 Год назад +2

    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?

  • @AlifRadhitya
    @AlifRadhitya 2 года назад +8

    24:11 luke!

  • @alejandromedina1019
    @alejandromedina1019 2 года назад +1

    Grateful for this series Luke

  • @mjdev-i1p
    @mjdev-i1p 2 года назад +4

    tbh .. even as a senior Fullstack engineer personally I'd rather use wordpress

  • @HarishPillay
    @HarishPillay Год назад

    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.

  • @marmotlord
    @marmotlord 2 года назад +2

    More Hugo content, please!

  • @shirosurfer8864
    @shirosurfer8864 2 года назад +7

    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

    • @driver34579
      @driver34579 Год назад

      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.

  • @DarthDweeb
    @DarthDweeb 7 месяцев назад

    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.

  • @soimless
    @soimless 2 года назад

    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

  • @adammontgomery7980
    @adammontgomery7980 2 года назад

    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".

    • @kexec.
      @kexec. 2 года назад

      Is it just Go template?

    • @adammontgomery7980
      @adammontgomery7980 2 года назад

      @@kexec. Yep

    • @techguydilan
      @techguydilan Год назад

      From what I understand, the prepended dot differentiates an object, vs a function.

  • @samoylov1973
    @samoylov1973 2 года назад +7

    {{Good old Luke is finally back with good stuff }}

  • @ConciseCabbage
    @ConciseCabbage 2 года назад +7

    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?

    • @LukeSmithxyz
      @LukeSmithxyz  2 года назад +12

      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

    • @nomms
      @nomms 2 года назад +2

      Just write a bash script and move the public directory to your server. Ezpz

  • @reinoob
    @reinoob 2 года назад

    Your bad decisions and your problems always start with choosing WordPress

  • @StephanGelenscher
    @StephanGelenscher 2 года назад +2

    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

    • @Anhonime
      @Anhonime 2 года назад +1

      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.

  • @coscorrodrift
    @coscorrodrift 2 года назад

    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

  • @lpanebr
    @lpanebr 2 года назад

    Great video. Thank you.

  • @nedjmamedia6810
    @nedjmamedia6810 Год назад +1

    How to display aurthors with avatar on homepage ?

  • @ditchcomfort
    @ditchcomfort 2 года назад +5

    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?

  • @batlin
    @batlin Год назад

    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.

  • @blessingaustin-gabriel
    @blessingaustin-gabriel Месяц назад

    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?

  • @jokacantcode
    @jokacantcode 2 года назад +1

    man you saved my life
    thanks

  • @flyingtux3234
    @flyingtux3234 2 года назад +2

    Luke in 19:50 You change opacity. Is that in LARBS or just your personal configuration ? If so can you add this function ?

  • @blu3_enjoy
    @blu3_enjoy 2 года назад

    So this is jekyll but for cool people

  • @bhaveshverma8629
    @bhaveshverma8629 2 года назад +2

    Fantastic. Can we do pagination and search

    • @linuxlifepage
      @linuxlifepage 2 года назад

      Please watch my video about hugo, tnx)

  • @acronproject
    @acronproject Год назад

    Thank you

  • @Rundik
    @Rundik 2 года назад

    You can't compare staticly generated with dynamic

  • @alt_warn4211
    @alt_warn4211 2 года назад +2

    , Saturday live stream!!

  • @SCALENE5
    @SCALENE5 2 года назад

    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.

  • @JLarky
    @JLarky 2 года назад

    I'm here because of fireship and flamethrower js

  • @_antaro
    @_antaro 2 года назад

    Is Hugo the same or more powerful than Pug (former Jade)?

  • @guertinD61
    @guertinD61 2 года назад

    why Hugo instead of Jekyll?

  • @ltxr9973
    @ltxr9973 2 года назад

    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.

    • @LukeSmithxyz
      @LukeSmithxyz  2 года назад +9

      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.

    • @ltxr9973
      @ltxr9973 2 года назад

      @@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.

    • @LukeSmithxyz
      @LukeSmithxyz  2 года назад +5

      Caching does not make dynamic sites equivalent to plain HTML files being served.
      You can get a CMS for Hugo if you need it.

  • @paulmacgiollacaoine8619
    @paulmacgiollacaoine8619 2 года назад +1

    @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

    • @UrnEmpty
      @UrnEmpty 2 года назад +1

      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.

  • @ankanroy2931
    @ankanroy2931 2 года назад

    i still like zola more

  • @grygry12345
    @grygry12345 2 года назад

    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.

  • @alextremodelnorte1905
    @alextremodelnorte1905 2 года назад

    Hyoooooo - go!

  • @PixelTrik
    @PixelTrik 2 года назад

    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
      @ericgrasby6207 2 года назад +5

      I have a hard time believing that is true

    • @PixelTrik
      @PixelTrik 2 года назад +1

      @@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!

    • @eotikurac
      @eotikurac 2 года назад

      i hope you don't work in a team

    • @PixelTrik
      @PixelTrik 2 года назад

      @@eotikurac I work in a team but I use C++, maybe I got high hopes due to this.

  • @bluegreen8650
    @bluegreen8650 2 года назад

    s n e e d

  • @sjuvanet
    @sjuvanet 2 года назад +1

    I'm gay

  • @eotikurac
    @eotikurac 2 года назад

    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.

    • @keutone626
      @keutone626 Год назад +1

      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.

  • @micheledale8409
    @micheledale8409 2 года назад

    😩 ᴘʀᴏᴍᴏsᴍ

  • @ux7188
    @ux7188 2 года назад +2

    don't like the tan background

    • @Dihydrousoxide
      @Dihydrousoxide 2 года назад +1

      Luke addressed your comment at 16:45