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

Gallery image resize #21

Open
skcary77 opened this issue Sep 23, 2017 · 3 comments
Open

Gallery image resize #21

skcary77 opened this issue Sep 23, 2017 · 3 comments

Comments

@skcary77
Copy link

Hi Tom,

When you select an image for the gallery, it automatically gets resized and creates a border with the color that you choose.

+++
date = "2017-05-15T21:52:57-07:00"
title = "Banff Campsite Scheduler"
image = "banff-header.png"
alt = "Sample"
color = "#53c9db"
link1 = "https://google.com"
link2 = ""
+++

I would like to be able to have the image take up the entire allotted space (no color surrounding it). Is there a way to do this? I tried setting color = "" but it still gets resized.

Thank you for the excellent theme!

@gustavotero7
Copy link
Contributor

Hi @skcary77 , try this.
Create a new file inside your partials folder youHugoSite/layouts/partials (is partials folder not exists just create it).

Now create a file css.html to override some css fields and paste this

<style>
header {
}

.gallery img {
  margin: 0 0;
  width: 100%;
  display: block;
  padding: 0;
}
</style>

Now rebuild or run your site and the gallery images will cover all the colored space.

@erazemk
Copy link

erazemk commented Jan 2, 2019

Hi @gustavotero7 , I tried this but it did not work, my images are still not properly sized, any other ideas?

@gustavotero7
Copy link
Contributor

gustavotero7 commented Jan 3, 2019

Hi @JustMeErazem not sure if there are new changes that affect this (long time since I have worked with this template), I will check-it later and reply again here

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