Migrating my wordpress site to Hugo

I installed wordpress-to-hugo exporter into my Wordpress, and downloaded a copy of my website.

I then took the following steps:

  • installed Hugo

  • went into my main Google Drive folder, and run “hugo new site gasparri.org”

  • I picked the contrast-hugo theme because it was the one suggested by Ryan Schachte (see later)

  • so I moved into the themes directory (cd gasparri.org/themes) and ran “git clone https://github.com/niklasbuschmann/contrast-hugo.git" and added in my config.toml the line theme = “contrast-hugo”

  • unzipped the downloaded copy of my Wordpress site, and:

    • moved “/posts” to “gasparri.org/content/posts”
    • moved “/homepage/index.md” to “gasparri.org/content/_index.md” (I don’t know if it was just my setup, but my homepage was a static page and it was downloaded in a /homepage folder, your setup might vary)
    • moved all the pages to the gasparri.org/content/ folder (some pages have the draft:true in the front end matter, and are not rendered)

In the end, my folder gasparri.org/ looked like: * archetypes * content * data * layouts * public * static * themes * config.toml

I ran “hugo server -D” and manually checked every single page. Most links to images and similar were broken and had to fix them manually.

I then realized that I needed a two column page for my About me page, so I went to the Hugo theme repository and searched for a Bootstrap theme.


Rendering LaTex with HUGO https://www.google.com/search?q=hugo+latex&oq=hugo+latex&aqs=chrome..69i57j0i19l3j0i19i22i30l2j0i10i19i22i30.1940j0j7&sourceid=chrome&ie=UTF-8