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

add avatar like image to sidebar #233

Open
camrinbraun opened this issue Nov 1, 2018 · 2 comments
Open

add avatar like image to sidebar #233

camrinbraun opened this issue Nov 1, 2018 · 2 comments

Comments

@camrinbraun
Copy link

Is it possible to add an avatar-like icon or image to the sidebar above the site title? For example, the header image shown here: https://deanattali.com/beautiful-jekyll/. Thanks!

@dmitry-vereykin
Copy link

Hi, I went to sidebar.html and added:
<img src="{{ site.baseurl }}public/profile_picture.jpg" alt="hi" class="inline"/>
above the tag with the site title.
...add your picture to the public folder. :)

@eisen1990
Copy link

eisen1990 commented Jan 2, 2019

First, Your avatar(or icon) will be placed in public or assets directory.
Second,
in _includes/sidebar.html
At the top of source code..

<div class="sidebar-about">
      <h1>
        <a href="{{ site.baseurl }}">
          {{ site.title }}
        </a>
      </h1>
      <img src='{{"/public/icon.jpg" | absolute_url}}'> <!-- **Tag Insertion, like this**-->
      <p class="lead">{{ site.description }}</p>
    </div>

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