Tutorial - Dynamic JavaScript year/date in copyright footer with HUGO the static site generator.

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

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

  • @TaliandEyal
    @TaliandEyal 3 года назад +2

    Thanks ! Good explanation.

    • @futurewebdesign
      @futurewebdesign  3 года назад

      Thanks! If you have any requests let me know.

    • @TaliandEyal
      @TaliandEyal 3 года назад

      @@futurewebdesign yes, I will appreciate if you can do a video on multi lingual website with Hugo

    • @futurewebdesign
      @futurewebdesign  3 года назад

      Sure, I have some more basics to get through first, but its on my list

  • @mercedesaragon1684
    @mercedesaragon1684 3 года назад +2

    Thanks for the useful info

  • @chrtravels
    @chrtravels 11 месяцев назад

    It's my understanding that the copyright year should be the date the site is built. If you want, you can to the date built to the current date but the initial copyright date should be when the site is published. Since the script runs every time, on a dynamically generated site, I haven't been able to figure out if there is a way to generate the initial publish date. The only way I can think it so hard code the publish date and dynamically generate the to year. Example: Copyright 'hard-coded-publish-date' - 'dynamic-to-date.' Any thoughts on this? The only way I can think would be to retrieve the published date, from the database.

    • @futurewebdesign
      @futurewebdesign  10 месяцев назад

      You would have to create a site config variable for original_publish_year

  • @sifar786
    @sifar786 3 месяца назад

    good tutorials. only thing i wish they were in sequence, creating a single website and adding things, improving it along the way. Seems confusing right now, as i need to scrap earlier website that you helped create, and download a new one from your repository.

    • @futurewebdesign
      @futurewebdesign  3 месяца назад

      Hugo is pretty good for adding on ideas as there are no dependencies or traps. Have a go at my Hugo intro video and then watch more videos to add pieces on