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

Issue integrating hugo-easy-gallery into hugo-fresh #170

Closed
jsacerot opened this issue Apr 2, 2023 · 3 comments
Closed

Issue integrating hugo-easy-gallery into hugo-fresh #170

jsacerot opened this issue Apr 2, 2023 · 3 comments

Comments

@jsacerot
Copy link

jsacerot commented Apr 2, 2023

I want to generate some photo galleries for my hugo-fresh-based website. I have tried to integrate hugo-easy-gallery into hugo-fresh but have faced some issues with the grid tile size and margin. It seems that the issue is related to an undocumented dependency on Bootstrap CSS v3.7.7.

Do you have any ideas/suggestions on how to solve this issue? I would appreciate any help!

@Darthagnon
Copy link

Darthagnon commented Apr 3, 2023

@jsacerot It's probably a CSS issue - this theme uses advanced "SCSS" aka compiled CSS, which I have found difficult to work with. A suggestion, however, try putting the CSS for my fork of hugo easy gallery in your site root, perhaps with !important at the end of every CSS rule. What you're aiming to do is an override of this theme's styles, similar to what I did for a friend's website using this other theme, Massively, that used SCSS

e.g.

my-cool-website
- themes
- - hugo-fresh
- content
- static
- - css
- - - hugo-easy-gallery.css

@jsacerot
Copy link
Author

jsacerot commented Apr 4, 2023

@Darthagnon Thank you for your suggestions. They were really helpful. I set !important at the end of every CSS rule, but it did not work. So, I decided to convert the CSS into a SASS using this online app. There was a significant improvement (see screenshot below) compared to the initial results. I still need to figure out how to make sure the tile spacing in the horizontal and vertical is the same.

image

@han16nah
Copy link

han16nah commented Apr 9, 2023

@Darthagnon Thank you for your suggestions. They were really helpful. I set !important at the end of every CSS rule, but it did not work. So, I decided to convert the CSS into a SASS using this online app. There was a significant improvement (see screenshot below) compared to the initial results. I still need to figure out how to make sure the tile spacing in the horizontal and vertical is the same.

image

Cool. So you converted the hugo-easy-gallery.css?
Where did you put the converted SASS file? Also in static/css? And did you save it as .sass?
Sorry, I do not have a lot of experience and would really like to get it working, so if you could give me some insight in how your file structure now looks like, that would be great!

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

No branches or pull requests

3 participants