Hugo

· ☕ 2 min read
🏷️
  • #Hugo
  • This site is build with Hugo. Hugo is a static site generator written in Go.

    It is very fast, consists of a single executable and it can be used in a multitude of operating systems.
    There are two versions to download. Even though there is no official document describing the differences the extended version is the best one. Apparently some themes require the presence of the extended version.
    Installation is very simple.Extract the contents of the directory and move to a directory that is in the path of the system.
    Then after creating the directory where your new site will be stored enter
    hugo new site mynewsite
    and a new directory mynewsite will be created.
    Downloading themes is simple no git use is necessary.
    Go to the github url of the theme and press the green “download or clone” button and choose download zip.
    Installing a theme is as simple as extracting the zip file to a seperate diectory in the themes directory and changing the theme name in the .toml file in the base directory.
    Then after following the individual instructions of the theme the first post can be created by entering
    hugo new posts/my-first-post.md
    A new file will be created in the content\posts directory.This file can be edited in any text editor.
    After saving the changes the site is visible locally by visiting the url http:\\localhost:1313 with any browser after entering at the base directory
    hugo serve
    The nice thing is that if the file my-first-post.md is changed the site is updated instantly.
    When all the content is created then the final site for the day can be created for uploading by entering at the base directory
    hugo -D
    Of course all this trouble can be avoided by just uploading the .md files at a service like zeit, github pages or netlify.

    Share on

    MtPelion
    WRITTEN BY
    MtPelion
    Site