ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Installing Hugo Static Website Generator on Linux

    IT Discussion
    hugo linux snap fedora centos ubuntu debian
    5
    14
    1.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Emad RE
      Emad R @scottalanmiller
      last edited by Emad R

      @scottalanmiller

      no quick start guide? found this:

      https://gohugo.io/getting-started/quick-start/

      Using the above i got blankscreen when I visit my localhost site, it is running but blank page

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @Emad R
        last edited by

        @Emad-R said in Installing Hugo Static Website Generator on Linux:

        @scottalanmiller

        no quick start guide?

        One step at a time.

        1 Reply Last reply Reply Quote 0
        • ObsolesceO
          Obsolesce @scottalanmiller
          last edited by

          @scottalanmiller said in Installing Hugo Static Website Generator on Linux:

          Hugo is a popular static website generator and runs on Linux just fine. However, they don't have any standard Linux install documentation on their website and only show using Homebrew, a MacOS package that essentially no one on Linux uses. Very odd. For those on Linux you likely want the Snap package instead. Here are the install instructions for all major Linux OSes.

          sudo snap install hugo
          

          Yeah, their documentation, while it appears great, was actually 100% useless. It was far from intuitive. The only thing that gave me a working Hugo to start with was installing from snap.

          1 Reply Last reply Reply Quote 0
          • black3dynamiteB
            black3dynamite
            last edited by

            Does that installs Hugo or Hugo Extended?

            1 Reply Last reply Reply Quote 0
            • stacksofplatesS
              stacksofplates
              last edited by

              They probably don't have any "official" Linux documentation because it's just a binary you download from their releases page on GitHub.

              I just throw it in ~/bin and it works.

              1 Reply Last reply Reply Quote 0
              • stacksofplatesS
                stacksofplates @scottalanmiller
                last edited by

                @scottalanmiller said in Installing Hugo Static Website Generator on Linux:

                However, they don't have any standard Linux install documentation on their website and only show using Homebrew, a MacOS package that essentially no one on Linux uses. Very odd.

                I just looked. I'm not sure what you're talking about. The page clearly shows snaps, dnf, apt, pacman, eopgk, and pkg_add for OpenBSD.

                https://gohugo.io/getting-started/installing

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • black3dynamiteB
                  black3dynamite
                  last edited by

                  Installing Hugo from tarball is what I would use now.

                  I have a script that will compare the current version and the latest version. If I have a old version it will download a newer version. Now I just need to setup systemd schedule for it.

                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @black3dynamite
                    last edited by

                    @black3dynamite said in Installing Hugo Static Website Generator on Linux:

                    Installing Hugo from tarball is what I would use now.

                    I have a script that will compare the current version and the latest version. If I have a old version it will download a newer version. Now I just need to setup systemd schedule for it.

                    Snap automates that out of the gate.

                    black3dynamiteB 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @stacksofplates
                      last edited by

                      @stacksofplates said in Installing Hugo Static Website Generator on Linux:

                      @scottalanmiller said in Installing Hugo Static Website Generator on Linux:

                      However, they don't have any standard Linux install documentation on their website and only show using Homebrew, a MacOS package that essentially no one on Linux uses. Very odd.

                      I just looked. I'm not sure what you're talking about. The page clearly shows snaps, dnf, apt, pacman, eopgk, and pkg_add for OpenBSD.

                      https://gohugo.io/getting-started/installing

                      Completely different than what I got from the same link this morning. I went to that page, clicked on Linux, and they only showed Brewlinux, which isn't even the current name of the system.

                      stacksofplatesS 1 Reply Last reply Reply Quote 0
                      • black3dynamiteB
                        black3dynamite @scottalanmiller
                        last edited by

                        @scottalanmiller said in Installing Hugo Static Website Generator on Linux:

                        @black3dynamite said in Installing Hugo Static Website Generator on Linux:

                        Installing Hugo from tarball is what I would use now.

                        I have a script that will compare the current version and the latest version. If I have a old version it will download a newer version. Now I just need to setup systemd schedule for it.

                        Snap automates that out of the gate.

                        If I was using Ubuntu. Not installing snapd on my Fedora systems.

                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @black3dynamite
                          last edited by

                          @black3dynamite said in Installing Hugo Static Website Generator on Linux:

                          @scottalanmiller said in Installing Hugo Static Website Generator on Linux:

                          @black3dynamite said in Installing Hugo Static Website Generator on Linux:

                          Installing Hugo from tarball is what I would use now.

                          I have a script that will compare the current version and the latest version. If I have a old version it will download a newer version. Now I just need to setup systemd schedule for it.

                          Snap automates that out of the gate.

                          If I was using Ubuntu. Not installing snapd on my Fedora systems.

                          I always add Snap to Fedora. Why would you only want it on Ubuntu? It's a universal standard.

                          1 Reply Last reply Reply Quote 0
                          • stacksofplatesS
                            stacksofplates @scottalanmiller
                            last edited by

                            @scottalanmiller said in Installing Hugo Static Website Generator on Linux:

                            @stacksofplates said in Installing Hugo Static Website Generator on Linux:

                            @scottalanmiller said in Installing Hugo Static Website Generator on Linux:

                            However, they don't have any standard Linux install documentation on their website and only show using Homebrew, a MacOS package that essentially no one on Linux uses. Very odd.

                            I just looked. I'm not sure what you're talking about. The page clearly shows snaps, dnf, apt, pacman, eopgk, and pkg_add for OpenBSD.

                            https://gohugo.io/getting-started/installing

                            Completely different than what I got from the same link this morning. I went to that page, clicked on Linux, and they only showed Brewlinux, which isn't even the current name of the system.

                            Way back machine shows it's been there since at least the 13th.

                            https://web.archive.org/web/20191113183617/https://gohugo.io/getting-started/installing/

                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @stacksofplates
                              last edited by

                              @stacksofplates said in Installing Hugo Static Website Generator on Linux:

                              @scottalanmiller said in Installing Hugo Static Website Generator on Linux:

                              @stacksofplates said in Installing Hugo Static Website Generator on Linux:

                              @scottalanmiller said in Installing Hugo Static Website Generator on Linux:

                              However, they don't have any standard Linux install documentation on their website and only show using Homebrew, a MacOS package that essentially no one on Linux uses. Very odd.

                              I just looked. I'm not sure what you're talking about. The page clearly shows snaps, dnf, apt, pacman, eopgk, and pkg_add for OpenBSD.

                              https://gohugo.io/getting-started/installing

                              Completely different than what I got from the same link this morning. I went to that page, clicked on Linux, and they only showed Brewlinux, which isn't even the current name of the system.

                              Way back machine shows it's been there since at least the 13th.

                              https://web.archive.org/web/20191113183617/https://gohugo.io/getting-started/installing/

                              Very weird. I wonder if it was a cache somewhere? I definitely poked around this morning and Linuxbrew was the only thing that it had and had it from every link that I tried on their site.

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post