If Statements | Hugo - Static Site Generator | Tutorial 19

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

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

  • @JerryWangJH
    @JerryWangJH 6 лет назад +18

    Awesome video tutorials! This Hugo tutorial is better than its official docs. Thanks!

  • @RyanMcCarl
    @RyanMcCarl 6 лет назад +4

    Thanks for making these - very useful content not available in any other Hugo tutorials I’ve seen.

  • @ovuokeaghwotu2389
    @ovuokeaghwotu2389 3 года назад +1

    This series is amazing!

  • @gilbertosassi
    @gilbertosassi 4 года назад +1

    awesome tutorial!

  • @darkbanditEX
    @darkbanditEX 3 года назад +1

    Neat, seems like it's turning into a Golang tutorial!

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

    Hello Mike! Thanks for the video, please, can you also show how to create simple conditional text? For example: One code snippet is shared into two markdown files, but depending on the filename or title, one line of the code snippet will be different.

  • @vidusshirawal7953
    @vidusshirawal7953 4 года назад +1

    Hi Mike.. Can you share a video on How we can generate the tar of documents uploaded on HUGO or generate the pdf's

  • @mathicalee
    @mathicalee 4 года назад +1

    You can also use "ne ..." instead of "not (eq ...)"

  • @patrickchan2503
    @patrickchan2503 2 месяца назад

    Why Hugo syntax is hard to read for people who don't know it? Is there a reason they made it like so? Is it for readability (ironic as it sounds) I wonder? Thanks

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

    For reference: .URL is replaced by .Permalink

  • @0mink0
    @0mink0 3 года назад

    Why did you start naming variables with a leading $ ? It was totally unexpected.

  • @MikeSigsworth
    @MikeSigsworth 6 лет назад +5

    It would have been more evident from the start if you'd named the variable $currentPageTitle.

    • @CameronPak
      @CameronPak 6 лет назад +1

      Yes, and this is a great learning opportunity. The videos he's making are really good so far

  • @PawelSysiak
    @PawelSysiak 6 лет назад

    What does "$" mean does here?

    • @Efficienthacks
      @Efficienthacks 5 лет назад +1

      It looks like all variable names must begin with $

    • @matthiaslangbart9841
      @matthiaslangbart9841 5 лет назад +7

      The '$' indicates that the variable is not global but only visible in the current scope, i.e in the current single page.

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

    "Cool conditionals ai"
    Kzread info 785. $var7 (test trshow)