Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ngehani opened this issue Oct 12, 2016 · 8 comments
Closed

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

ngehani opened this issue Oct 12, 2016 · 8 comments

Comments

@ngehani
Copy link

ngehani commented Oct 12, 2016

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
Copy link
Author

ngehani commented Oct 13, 2016

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.

@ngehani ngehani closed this as completed Oct 13, 2016
@adrianmo adrianmo reopened this Oct 14, 2016
@adrianmo
Copy link
Contributor

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

@schuster-rainer
Copy link
Contributor

@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
Copy link

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
Copy link
Contributor

GeorgeWL commented Jul 4, 2017

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

@GeorgeWL GeorgeWL self-assigned this Jul 4, 2017
@arunrajagopalan
Copy link

arunrajagopalan commented Jul 4, 2017

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
Copy link
Contributor

GeorgeWL commented Jul 4, 2017

@adrianmo Closing this issue.

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

@GeorgeWL GeorgeWL closed this as completed Jul 4, 2017
@GeorgeWL
Copy link
Contributor

GeorgeWL commented Jul 4, 2017

#96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants