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

Unable to modify "site-title" png image #3

Closed
noelje opened this issue Nov 17, 2020 · 6 comments
Closed

Unable to modify "site-title" png image #3

noelje opened this issue Nov 17, 2020 · 6 comments

Comments

@noelje
Copy link

noelje commented Nov 17, 2020

"site-title" custom png image resets to "BAY THEME" after re-running jekyll serve.

img
img

To recreate this issue:

  1. Create your own header image from the same dimensions as the default one: 160 x 28 pixels.
  2. Create 2 copies of this png file with transparent background.
  3. Rename them as title.png and title@2x.png and replace them at _site/assets/img/
  4. Re-run Jekyll and it should overwrite the files we just created.

I want to either:

  1. display my name as just text
  2. a way to use this custom png as the header / logo:
    img
@eliottvincent
Copy link
Owner

Hello Noel.

The _site directory contains the build of your Jekyll website, you shouldn't touch to it. Its content is refreshed every time you run jekyll serve, hence overriding any modifications you would do inside it.
Please have a look here: https://jekyllrb.com/docs/structure/

So to edit the assets, simply check in the assets directory ;)

@noelje
Copy link
Author

noelje commented Nov 18, 2020

For future reference,

I got the custom header img to show up by:

  1. making an assets directory
  2. cd into assets
  3. make another directory called img
  4. cd into img
  5. have 2 png files named: title.png and title@2x.png
  6. When re-running jekyll-serve you should see your custom png overwriting the default one.

Links I used to come to this conclusion

@rachelstephlee
Copy link

rachelstephlee commented Sep 21, 2021

my issue is that somehow when i put my own title.png in, my own png's height is much smaller than the default title PNG's "BAY THEME"
how am i supposed to generate the .png so that it would be bigger? I tried forcing the image width/height, but any height inputs gets overrode and the width just distorts the image.

@eliottvincent
Copy link
Owner

A 40px high picture should be all right (rendered height is 28px). Width can be anything. What's the size of your current picture? Do you have a screenshot of the issue?

@rachelstephlee
Copy link

yea i sorted it out. i was using illustrator to make the image, but when it outputs on transparent background and gets uploaded on the page, it doesn't like the dimensions as much. since the title is just a transparent png of text in futura font, it might be useful to have a way to generate it for users (so they dont have to generate their own). i also would have appreciated it if it were added in the documentation that's how you change the title (i would imagine no one would want a website titled "BAY THEME" starting out).

thanks for the fast response, and, really, beautiful template.

@eliottvincent
Copy link
Owner

Glad it's working now! The Futura font is a paid and licensed font, that's why I don't provide anything to automatically generate the picture. I'll add some instructions in the documentation though, thanks for the feedback.

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