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

    Building A Hugo Site From a Theme

    IT Discussion
    hugo
    4
    12
    1.1k
    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.
    • stacksofplatesS
      stacksofplates
      last edited by

      1. First choose a theme from here: https://themes.gohugo.io/
        For this example I'm just going to use this theme: https://themes.gohugo.io/meghna-hugo/#installation

      2. Click download to go to their GitHub.

      3. Make a themes directory

      4. Clone the repo into your themes directory

      5. Copy the contents of the exampleSite directory in the theme 3 levels up in your top level site directory.

      6. Run hugo serve -D

      7. Modify the content and watch it change live.

      Here's what you get at localhost:1313

      hugo.png

      1 Reply Last reply Reply Quote 3
      • ObsolesceO
        Obsolesce
        last edited by Obsolesce

        Yeah, that's not working (now it is). Here is what I did from fresh Ubuntu install.

        1. sudo apt update
        2. sudo apt upgrade
        3. sudo apt install hugo
        4. hugo version to verify installation
        5. hugo new site testsite.com
        6. Downloaded https://github.com/themefisher/meghna-hugo/archive/master.zip
        7. Extracted it into the /home/testsite.com/themes directory
        8. Renamed folder in themes directory to meghna-hugo.
        9. Copied the exampleSite folder to site root, replacing/merging/overwriting everything when asked.
        10. Ran hugo serve -D from the /home/testsite.com directory.

        Result: Blank white page.

        UPDATE (added steps 7,8,9)
        Okay I missed your step 5, and did that, after I found the directory you were referring to:

        ERRORS:

        1. Says my hugo version is too old for the theme. It looks like the default repo uses version 0.40.x, and the theme requires v0.55.x. So I found the place in the theme config to change minimal version, and continued to get a wall of errors.

        --

        1. Installed latest version via built-in software install GUI

        2. Retried my steps starting at step 4.

        3. NOW I get a working site.

        c92768ff-5867-4eed-bb98-ab895d60c3f5-image.png

        stacksofplatesS 1 Reply Last reply Reply Quote 2
        • stacksofplatesS
          stacksofplates @Obsolesce
          last edited by

          @Obsolesce said in Building A Hugo Site From a Theme:

          Yeah, that's not working (now it is). Here is what I did from fresh Ubuntu install.

          1. sudo apt update
          2. sudo apt upgrade
          3. sudo apt install hugo
          4. hugo version to verify installation
          5. hugo new site testsite.com
          6. Downloaded https://github.com/themefisher/meghna-hugo/archive/master.zip
          7. Extracted it into the /home/testsite.com/themes directory
          8. Renamed folder in themes directory to meghna-hugo.
          9. Copied the exampleSite folder to site root, replacing/merging/overwriting everything when asked.
          10. Ran hugo serve -D from the /home/testsite.com directory.

          Result: Blank white page.

          UPDATE (added steps 7,8,9)
          Okay I missed your step 5, and did that, after I found the directory you were referring to:

          ERRORS:

          1. Says my hugo version is too old for the theme. It looks like the default repo uses version 0.40.x, and the theme requires v0.55.x. So I found the place in the theme config to change minimal version, and continued to get a wall of errors.

          --

          1. Installed latest version via built-in software install GUI

          2. Retried my steps starting at step 4.

          3. NOW I get a working site.

          c92768ff-5867-4eed-bb98-ab895d60c3f5-image.png

          I don't ever install from the repos. It's a single binary so I grab the latest release from their releases page and put it in ~/bin. In my experience the themes are more likely to work with the newer version and not an older one. But 40 is exceptionally old, around a year and a half. That's why I usually just grab from releases every so often.

          black3dynamiteB 1 Reply Last reply Reply Quote 1
          • black3dynamiteB
            black3dynamite @stacksofplates
            last edited by

            @stacksofplates said in Building A Hugo Site From a Theme:

            @Obsolesce said in Building A Hugo Site From a Theme:

            Yeah, that's not working (now it is). Here is what I did from fresh Ubuntu install.

            1. sudo apt update
            2. sudo apt upgrade
            3. sudo apt install hugo
            4. hugo version to verify installation
            5. hugo new site testsite.com
            6. Downloaded https://github.com/themefisher/meghna-hugo/archive/master.zip
            7. Extracted it into the /home/testsite.com/themes directory
            8. Renamed folder in themes directory to meghna-hugo.
            9. Copied the exampleSite folder to site root, replacing/merging/overwriting everything when asked.
            10. Ran hugo serve -D from the /home/testsite.com directory.

            Result: Blank white page.

            UPDATE (added steps 7,8,9)
            Okay I missed your step 5, and did that, after I found the directory you were referring to:

            ERRORS:

            1. Says my hugo version is too old for the theme. It looks like the default repo uses version 0.40.x, and the theme requires v0.55.x. So I found the place in the theme config to change minimal version, and continued to get a wall of errors.

            --

            1. Installed latest version via built-in software install GUI

            2. Retried my steps starting at step 4.

            3. NOW I get a working site.

            c92768ff-5867-4eed-bb98-ab895d60c3f5-image.png

            I don't ever install from the repos. It's a single binary so I grab the latest release from their releases page and put it in ~/bin. In my experience the themes are more likely to work with the newer version and not an older one. But 40 is exceptionally old, around a year and a half. That's why I usually just grab from releases every so often.

            Another resacón to avoid LTS releases unless you are using the latest release from there website.

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

              @black3dynamite said in Building A Hugo Site From a Theme:

              @stacksofplates said in Building A Hugo Site From a Theme:

              @Obsolesce said in Building A Hugo Site From a Theme:

              Yeah, that's not working (now it is). Here is what I did from fresh Ubuntu install.

              1. sudo apt update
              2. sudo apt upgrade
              3. sudo apt install hugo
              4. hugo version to verify installation
              5. hugo new site testsite.com
              6. Downloaded https://github.com/themefisher/meghna-hugo/archive/master.zip
              7. Extracted it into the /home/testsite.com/themes directory
              8. Renamed folder in themes directory to meghna-hugo.
              9. Copied the exampleSite folder to site root, replacing/merging/overwriting everything when asked.
              10. Ran hugo serve -D from the /home/testsite.com directory.

              Result: Blank white page.

              UPDATE (added steps 7,8,9)
              Okay I missed your step 5, and did that, after I found the directory you were referring to:

              ERRORS:

              1. Says my hugo version is too old for the theme. It looks like the default repo uses version 0.40.x, and the theme requires v0.55.x. So I found the place in the theme config to change minimal version, and continued to get a wall of errors.

              --

              1. Installed latest version via built-in software install GUI

              2. Retried my steps starting at step 4.

              3. NOW I get a working site.

              c92768ff-5867-4eed-bb98-ab895d60c3f5-image.png

              I don't ever install from the repos. It's a single binary so I grab the latest release from their releases page and put it in ~/bin. In my experience the themes are more likely to work with the newer version and not an older one. But 40 is exceptionally old, around a year and a half. That's why I usually just grab from releases every so often.

              Another resacón to avoid LTS releases unless you are using the latest release from there website.

              Ya I was just using the install guide from the Hugo website... I think about how the Ubuntu repo was such shit being so behind.

              But then again I suppose that's why not to install the LTS release. I used Hyper-V's built-in wizard and blindly selected Ubuntu. But, it does offer 19.04, however, even 19.04 gives an extremely old version of Hugo (0.52-1 LOL!)

              I would have been much better off had I used Windows and Chocolatey, as that uses the current version (0.59).

              black3dynamiteB stacksofplatesS 2 Replies Last reply Reply Quote 0
              • black3dynamiteB
                black3dynamite @Obsolesce
                last edited by

                @Obsolesce said in Building A Hugo Site From a Theme:

                @black3dynamite said in Building A Hugo Site From a Theme:

                @stacksofplates said in Building A Hugo Site From a Theme:

                @Obsolesce said in Building A Hugo Site From a Theme:

                Yeah, that's not working (now it is). Here is what I did from fresh Ubuntu install.

                1. sudo apt update
                2. sudo apt upgrade
                3. sudo apt install hugo
                4. hugo version to verify installation
                5. hugo new site testsite.com
                6. Downloaded https://github.com/themefisher/meghna-hugo/archive/master.zip
                7. Extracted it into the /home/testsite.com/themes directory
                8. Renamed folder in themes directory to meghna-hugo.
                9. Copied the exampleSite folder to site root, replacing/merging/overwriting everything when asked.
                10. Ran hugo serve -D from the /home/testsite.com directory.

                Result: Blank white page.

                UPDATE (added steps 7,8,9)
                Okay I missed your step 5, and did that, after I found the directory you were referring to:

                ERRORS:

                1. Says my hugo version is too old for the theme. It looks like the default repo uses version 0.40.x, and the theme requires v0.55.x. So I found the place in the theme config to change minimal version, and continued to get a wall of errors.

                --

                1. Installed latest version via built-in software install GUI

                2. Retried my steps starting at step 4.

                3. NOW I get a working site.

                c92768ff-5867-4eed-bb98-ab895d60c3f5-image.png

                I don't ever install from the repos. It's a single binary so I grab the latest release from their releases page and put it in ~/bin. In my experience the themes are more likely to work with the newer version and not an older one. But 40 is exceptionally old, around a year and a half. That's why I usually just grab from releases every so often.

                Another resacón to avoid LTS releases unless you are using the latest release from there website.

                Ya I was just using the install guide from the Hugo website... I think about how the Ubuntu repo was such shit being so behind.

                But then again I suppose that's why not to install the LTS release. I used Hyper-V's built-in wizard and blindly selected Ubuntu. But, it does offer 19.04, however, even 19.04 gives an extremely old version of Hugo (0.52-1 LOL!)

                I would have been much better off had I used Windows and Chocolatey, as that uses the current version (0.59).

                Fedora 30 version of Hugo is 0.54.0-2

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

                  @black3dynamite said in Building A Hugo Site From a Theme:

                  @Obsolesce said in Building A Hugo Site From a Theme:

                  @black3dynamite said in Building A Hugo Site From a Theme:

                  @stacksofplates said in Building A Hugo Site From a Theme:

                  @Obsolesce said in Building A Hugo Site From a Theme:

                  Yeah, that's not working (now it is). Here is what I did from fresh Ubuntu install.

                  1. sudo apt update
                  2. sudo apt upgrade
                  3. sudo apt install hugo
                  4. hugo version to verify installation
                  5. hugo new site testsite.com
                  6. Downloaded https://github.com/themefisher/meghna-hugo/archive/master.zip
                  7. Extracted it into the /home/testsite.com/themes directory
                  8. Renamed folder in themes directory to meghna-hugo.
                  9. Copied the exampleSite folder to site root, replacing/merging/overwriting everything when asked.
                  10. Ran hugo serve -D from the /home/testsite.com directory.

                  Result: Blank white page.

                  UPDATE (added steps 7,8,9)
                  Okay I missed your step 5, and did that, after I found the directory you were referring to:

                  ERRORS:

                  1. Says my hugo version is too old for the theme. It looks like the default repo uses version 0.40.x, and the theme requires v0.55.x. So I found the place in the theme config to change minimal version, and continued to get a wall of errors.

                  --

                  1. Installed latest version via built-in software install GUI

                  2. Retried my steps starting at step 4.

                  3. NOW I get a working site.

                  c92768ff-5867-4eed-bb98-ab895d60c3f5-image.png

                  I don't ever install from the repos. It's a single binary so I grab the latest release from their releases page and put it in ~/bin. In my experience the themes are more likely to work with the newer version and not an older one. But 40 is exceptionally old, around a year and a half. That's why I usually just grab from releases every so often.

                  Another resacón to avoid LTS releases unless you are using the latest release from there website.

                  Ya I was just using the install guide from the Hugo website... I think about how the Ubuntu repo was such shit being so behind.

                  But then again I suppose that's why not to install the LTS release. I used Hyper-V's built-in wizard and blindly selected Ubuntu. But, it does offer 19.04, however, even 19.04 gives an extremely old version of Hugo (0.52-1 LOL!)

                  I would have been much better off had I used Windows and Chocolatey, as that uses the current version (0.59).

                  Fedora 30 version of Hugo is 0.54.0-2

                  Yeah, woulda had problems with that too since it required 55+. Looks like Chocolatey wins

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

                    @Obsolesce said in Building A Hugo Site From a Theme:

                    @black3dynamite said in Building A Hugo Site From a Theme:

                    @Obsolesce said in Building A Hugo Site From a Theme:

                    @black3dynamite said in Building A Hugo Site From a Theme:

                    @stacksofplates said in Building A Hugo Site From a Theme:

                    @Obsolesce said in Building A Hugo Site From a Theme:

                    Yeah, that's not working (now it is). Here is what I did from fresh Ubuntu install.

                    1. sudo apt update
                    2. sudo apt upgrade
                    3. sudo apt install hugo
                    4. hugo version to verify installation
                    5. hugo new site testsite.com
                    6. Downloaded https://github.com/themefisher/meghna-hugo/archive/master.zip
                    7. Extracted it into the /home/testsite.com/themes directory
                    8. Renamed folder in themes directory to meghna-hugo.
                    9. Copied the exampleSite folder to site root, replacing/merging/overwriting everything when asked.
                    10. Ran hugo serve -D from the /home/testsite.com directory.

                    Result: Blank white page.

                    UPDATE (added steps 7,8,9)
                    Okay I missed your step 5, and did that, after I found the directory you were referring to:

                    ERRORS:

                    1. Says my hugo version is too old for the theme. It looks like the default repo uses version 0.40.x, and the theme requires v0.55.x. So I found the place in the theme config to change minimal version, and continued to get a wall of errors.

                    --

                    1. Installed latest version via built-in software install GUI

                    2. Retried my steps starting at step 4.

                    3. NOW I get a working site.

                    c92768ff-5867-4eed-bb98-ab895d60c3f5-image.png

                    I don't ever install from the repos. It's a single binary so I grab the latest release from their releases page and put it in ~/bin. In my experience the themes are more likely to work with the newer version and not an older one. But 40 is exceptionally old, around a year and a half. That's why I usually just grab from releases every so often.

                    Another resacón to avoid LTS releases unless you are using the latest release from there website.

                    Ya I was just using the install guide from the Hugo website... I think about how the Ubuntu repo was such shit being so behind.

                    But then again I suppose that's why not to install the LTS release. I used Hyper-V's built-in wizard and blindly selected Ubuntu. But, it does offer 19.04, however, even 19.04 gives an extremely old version of Hugo (0.52-1 LOL!)

                    I would have been much better off had I used Windows and Chocolatey, as that uses the current version (0.59).

                    Fedora 30 version of Hugo is 0.54.0-2

                    Yeah, woulda had problems with that too since it required 55+. Looks like Chocolatey wins

                    A lot of ways to install Hugo.
                    https://gohugo.io/getting-started/installing/

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

                      @Obsolesce said in Building A Hugo Site From a Theme:

                      @black3dynamite said in Building A Hugo Site From a Theme:

                      @stacksofplates said in Building A Hugo Site From a Theme:

                      @Obsolesce said in Building A Hugo Site From a Theme:

                      Yeah, that's not working (now it is). Here is what I did from fresh Ubuntu install.

                      1. sudo apt update
                      2. sudo apt upgrade
                      3. sudo apt install hugo
                      4. hugo version to verify installation
                      5. hugo new site testsite.com
                      6. Downloaded https://github.com/themefisher/meghna-hugo/archive/master.zip
                      7. Extracted it into the /home/testsite.com/themes directory
                      8. Renamed folder in themes directory to meghna-hugo.
                      9. Copied the exampleSite folder to site root, replacing/merging/overwriting everything when asked.
                      10. Ran hugo serve -D from the /home/testsite.com directory.

                      Result: Blank white page.

                      UPDATE (added steps 7,8,9)
                      Okay I missed your step 5, and did that, after I found the directory you were referring to:

                      ERRORS:

                      1. Says my hugo version is too old for the theme. It looks like the default repo uses version 0.40.x, and the theme requires v0.55.x. So I found the place in the theme config to change minimal version, and continued to get a wall of errors.

                      --

                      1. Installed latest version via built-in software install GUI

                      2. Retried my steps starting at step 4.

                      3. NOW I get a working site.

                      c92768ff-5867-4eed-bb98-ab895d60c3f5-image.png

                      I don't ever install from the repos. It's a single binary so I grab the latest release from their releases page and put it in ~/bin. In my experience the themes are more likely to work with the newer version and not an older one. But 40 is exceptionally old, around a year and a half. That's why I usually just grab from releases every so often.

                      Another resacón to avoid LTS releases unless you are using the latest release from there website.

                      Ya I was just using the install guide from the Hugo website... I think about how the Ubuntu repo was such shit being so behind.

                      But then again I suppose that's why not to install the LTS release. I used Hyper-V's built-in wizard and blindly selected Ubuntu. But, it does offer 19.04, however, even 19.04 gives an extremely old version of Hugo (0.52-1 LOL!)

                      I would have been much better off had I used Windows and Chocolatey, as that uses the current version (0.59).

                      Doing things with Go has really made me lazy. Having a single binary is so nice. If I need separate dependencies for applications it kind of annoys me now.

                      1 Reply Last reply Reply Quote 1
                      • IRJI
                        IRJ
                        last edited by

                        Help @stacksofplates

                        9ae3eb54-ad8b-448b-b2ee-5dfbf7a7b92c-image.png

                        stacksofplatesS 1 Reply Last reply Reply Quote 0
                        • IRJI
                          IRJ
                          last edited by

                          Trying to follow this install

                          https://github.com/gohugoio/hugo

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

                            @IRJ said in Building A Hugo Site From a Theme:

                            Help @stacksofplates

                            9ae3eb54-ad8b-448b-b2ee-5dfbf7a7b92c-image.png

                            Do you need the source or are you just building a site with Hugo?

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