Just started using Jekyll to generate some basic pages and wanted to add a image logo to the top branding area on the navigation bar. Is there a standard way to do this without messing with the themes in Jekyll?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t believe it’s possible to do this without at least a little customizing of the theme.
However, since you’re using the default, twitter theme for Jekyll-Bootstrap, these changes should be fairly straightforward to make:
Put your logo.png in
assets/themes/twitterIn your
_includes/themes/twitter/default.htmlyou’ll want to add a<li>with your logo under the<ul class="nav">element like so:Next, define the
brand-imageclass by editingassets/themes/twitter/css/style.cssand add the following:}
You’ll probably have to play with the padding to get it to work just right for your image.