onweru / newsroom

A simple, minimalistic Hugo theme. View Demo here
https://rooms.netlify.app/
Other
287 stars 114 forks source link

Cant make this theme work: theme is not getting rendered correctly #30

Closed soumya997 closed 3 years ago

soumya997 commented 3 years ago

Hi, @onweru this theme is really great and I want to use it, but after using hugo server -D the website that I am getting in the localhost that is looking something like this,
Screenshot (1218)

where it should look like this(https://themes.gohugo.io/theme/newsroom/),
![Screenshot (1219)](https://user-images.githubusercontent.com/54326088/120295807-20e35200-c2e5-11eb-8842-36d2c7f64504.png) . The steps that I followed, 1. `hugo new site blog1` 2. `cd blog1` 3. `git init` 4. `git submodule add https://github.com/onweru/newsroom.git themes/newsroom` 5. Then copy-pasted all the files and folders that were present in the exampleSite folder. 6. made `baseurl = ""` 7. ran the command `hugo server -D` I am using windows 10, `hugo version` gives me `hugo v0.82.0-9D960784 windows/amd64 BuildDate=2021-03-21T17:28:04Z VendorInfo=gohugoio` It will be very helpful if you can help. thank you.
onweru commented 3 years ago

@soumya997, please include a trailing slash as commented on this line https://github.com/onweru/newsroom/blob/7c332200b78b25a2b7891011a33fcacecf86fa80/exampleSite/config.toml#L1

soumya997 commented 3 years ago

@soumya997, please include a trailing slash as commented on this line

https://github.com/onweru/newsroom/blob/7c332200b78b25a2b7891011a33fcacecf86fa80/exampleSite/config.toml#L1

Yeah @onweru I have changed the baseurl, and added "https://example.com/" in there, but it is still showing the same thing, it was unable to render the theme correctly.

Btw, is this a hugo version problem?

soumya997 commented 3 years ago

@onweru I just tried with the latest version of hugo, but the outcome is the same😭.

onweru commented 3 years ago

@soumya997, unless you're hosting on https://example.com/, that will not work. Please use the URL where you are hosting on.

soumya997 commented 3 years ago

@onweru I am hosing on the localhost for testing purposes, But the site is not loading properly.

onweru commented 3 years ago

I am using windows 10, hugo version gives me hugo v0.82.0-9D960784 windows/amd64 BuildDate=2021-03-21T17:28:04Z VendorInfo=gohugoio

I missed this 👆🏼 from your earlier response. Please ensure you have Hugo extended installed. You seem to be using the normal version of Hugo which wouldn't work. I would recommend installing Hugo using chocolatey on windows

https://gohugo.io/getting-started/installing/#chocolatey-windows

Alternatively, you can grab the extended version of hugo executable here

soumya997 commented 3 years ago

I knew you @onweru can help me out with this, thank you so much🙇‍♂️. It is working now.