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 Profile Image Size on About Page #7

Closed
gshick opened this issue Jan 1, 2021 · 8 comments
Closed

Changing Profile Image Size on About Page #7

gshick opened this issue Jan 1, 2021 · 8 comments

Comments

@gshick
Copy link

gshick commented Jan 1, 2021

I tracked down the css for the profile picture on the About page in resources>_gen>assets>scss>scss>style.scss_f300667da4f5b5f84e1a9e0702b2fdde and wanted to just increase the image size, but I am running into two problems:

  1. Each time I render the site locally (even with disableFastRender), it creates a copy of the scss folder with my website name and reverts to the standard 100px by 100px. So it creates two scss folders.

  2. I tried manually deleting the extra folder and pushing to GitHub to see if it could at least fix it on the Netlify side. However, even updating the code below seems to do nothing.

.author-img {
  height: 200px;
  width: 200px;
  border-radius: 50%;
  object-fit: cover;
  transform: translateY(50px); }

I'm getting the feeling that there is a problem with my folder structure but don't really know where to start on tracking down the issue. Here is my folder structure:

-.git
-content
-resources
-static
-themes
-persian
-archtypes
-assets
-images
-layouts
-static

-config.toml

@tfsomrat
Copy link
Contributor

tfsomrat commented Jan 2, 2021

Hello @gshick ,

Please check the doc https://docs.gethugothemes.com/guide/#file-structure

@gshick
Copy link
Author

gshick commented Jan 3, 2021

I ran a fresh rebuild and ensure I followed the instructions you shared...the issue seems to occur once you change the URL to your custom URL, I can then no set the .author-img parameters, it just creates a new file with each rebuild.

@somratpro
Copy link
Contributor

Hey @gshick

I am sorry to say that I didn't get you properly. what you are trying to say, is not clear to me.

@gshick
Copy link
Author

gshick commented Jan 5, 2021

How would you recommend changing the image size on the author page?

@somratpro
Copy link
Contributor

Hello @gshick

go to layouts/author/single.html and you will find this code height:150px;width:150px; change the value of hight and width.

@gshick
Copy link
Author

gshick commented Jan 5, 2021

Should this propagate to the "About" page as well? I made this change but it doesn't seem to impact the About page, even though it looks like they use the same param. I checked but there is no image sizing in layouts/about/single.html

@somratpro
Copy link
Contributor

somratpro commented Jan 6, 2021

Hello again,

If you want a big image on the about page, just replace the author-img class with img-fluid. it will do the job.

Also if you like this template, a star to the repository would be fantastic.

@somratpro
Copy link
Contributor

Hey @gshick

I think your issue has been solved. so I am closing this issue, if you have any more queries you can re-open this issue or create a new one. thank you

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