Hi everyone, im pretty new to hugo and static site generators and am trying to learn this new approach to developing static sites. Recently I have decided to migrate my drupal website to a static site. I want to use a static site generator with github. At first I tried jekyll, but had problems with getting javascript to work when I tried to implment a mega menu.
I put the project on hold a few months because I couldnt make it work. I then released that maybe I should try a different site generator. One that is designed for static page content as opposed to posts as main feature. Jekyll seems to be better for blogging. I like that Hugo is so simple to use and that everything is built based on the hierarchical structure of the content folder. I service computers, but also do web and ebook development. I want to create a site that opens to a gateway page that is about me and then have different sections for my services. This is why I want to use a mega menu.
On to the problem at hand. I was looking at https://www.staticgen.com/ and found hugo. I used netlify to auto deploy a instance of hugo and checked it out. Then I wanted to design a theme and test it out locally on my computer so I cloned the project onto my home ubuntu 17.10 desktop.
I started playing with it and thought Id might download a theme and see how it looks. So I cloned the theme into the theme directory under the site/theme root and specifed the theme in the config.toml file.
The problem is when I view the site using hugo server -D using the following config the site renders without the css. I checked the source and it does not seem to locate the paths correctly to render the css. I searched online to no avail to why I cant seem to get the pathing right. Right now the server is bound to 127.0.01 the url is http://localhost:1313. when I try to access any content from the content folder the path is not found and the theme im using wont render the css. I am assuming this has something to do with the path but everything looks right.
Can someone help me figure out where I am going wrong? I want to develop the site locally and then push my changes to github when I am ready. Is this possible? Thank you for your time.
baseurl = "/"
languageCode = "en-us"
languageLang = "en"
title = "My new Victor-Hugo site"
# RSS, categories and tags disabled for an easy start
# See configuration options for more details:
# https://gohugo.io/getting-started/configuration/#toml-configuration
disableKinds = ["RSS", "taxonomy", "taxonomyTerm"]
theme = "hugo-academic"