devcows / hugo-universal-theme

Universal theme for Hugo, it stands out with its clean design and elegant typography.
https://devcows.github.io/hugo-universal-theme
MIT License
806 stars 570 forks source link

Changing the background img/photogrid.jpg to something else? #22

Closed ngehani closed 7 years ago

ngehani commented 8 years ago

I can change the img/photogrid n default.css to something else in the /theme folder but wondering if there is a way to change the background image without changing the original theme. Do I just have to add /static/img/background.jpg and /static/css/style.default.css under layouts and change the jumbtron and .home_carousel to point to the new image? Is this enough or is there something else to add in the HUGO config.toml file?

ngehani commented 8 years ago

Resolved: Need to copy the carousel.html to layouts/partial along with the style.default.css to static/css and this overrides the default theme elements. The partials are the important piece to copy. The img/.... should contain the assets you want to use.

adrianmo commented 8 years ago

I'm reopening the issue as a reminder to make the background image configurable.

schuster-rainer commented 7 years ago

@ngehani @adrianmo you can just copy your own /static/img/photogrid.jpg to your hugo site. But make it completely configurable will also be a nice plus. Maybe I'll give it a shot. If I start, I'll leave a comment here

arunrajagopalan commented 7 years ago

Folks. Great theme. But I can't change the background no matter what I do. Even deleting photo grid and all the images in static/img doesn't change the background. I am sure smart as hugo, its not fabriacating the images !! Clearing my browser doesn't help. Where are the images coming from ?

GeorgeWL commented 7 years ago

The images should only ever be coming from within the img folder inside the /static/ folder. Hugo places these files in place in the correct places on build.

How are you implementing it? @arunrajagopalan

I noticed for e.g. that Forestry.io has a bug which doesn't remove the original images unless you expressly tell it to replace all content files.

edit: incorrect capitalisation

arunrajagopalan commented 7 years ago

Thanks George. We had a script that would test the site on a test bucket before deploying to a public bucket on S3. The baseURL wasn't changed. But most other URL were turned into absolute including the grid. After trashing that script and just changing baseURL before deploying solved the problem.

Thanks for the note on img. I now make sure the all unwanted images are deleted along with the public directory before calling hugo

GeorgeWL commented 7 years ago

@adrianmo Closing this issue.

That reminder should be it's own seperate issue, for ease of using the issue tracker more effectively.

GeorgeWL commented 7 years ago

https://github.com/devcows/hugo-universal-theme/issues/96