kishaningithub / hugo-creative-portfolio-theme

Port of the creative portfolio theme to Hugo
https://themes.gohugo.io/hugo-creative-portfolio-theme/
MIT License
447 stars 292 forks source link

Choose min cards size by params in config.toml #9

Open m-delvalle opened 7 years ago

m-delvalle commented 7 years ago

It would be great if it were possible to configure a minimum portfolio card size by defining a parameter in config.toml file.

I, for instance, love the theme, but for my use case a bigger card would be most beneficial. ¿Do you think that would be possible/feasible?

P.S.: great work! the theme is slick and works like a charm :+1:

kishaningithub commented 7 years ago

@m-delvalle Im actually not sure if its the right thing to do keeping in mind that this theme supports mobile devices as well.

m-delvalle commented 7 years ago

OK, thanks for the answer :)

Actually when you reduce the window size enough that you get a single column (a mobile-sized window) the tiles are actually much larger than you get on a large screen, which accommodates to several columns. And, if you keep reducing the width, tiles automatically re-size (shrink)..

Maybe a way could be specifying a max number of columns, so if you define max 2 columns on a 1600/1440p width screen you'd get (I think) wide tiles, and once you shrink the window, tiles would fill-in same way they do now...

Just an idea.. Not a clue how easy/doable this actually is...

m-delvalle commented 7 years ago

Not really sure, and it does imply is somewhat a hack, but still, I believe this could be relevant: https://stoned.io/web-development/hugo/GoHugo-Hack-Use-Hugo-Template-Variables-In-CSS/

I think it's a nice trick :wink:

GeorgeWL commented 7 years ago

If you think you can implement it well then go ahead and pull request @m-delvalle 😃