Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Creating a header image with Jekyll

I'm trying to make the header of my Jekyll site an image instead of a nav bar. Where do I edit to do this?

2 Answers

Tomas Pavlik
Tomas Pavlik
26,726 Points

Hi Vanessa, could you provide your html code?

Tomas

Hi Tomas,

Here's index.html:

---
layout: default
---

<div class="home">
<link href='http://fonts.googleapis.com/css?family=Merriweather|Open+Sans:400italic,400,300,700,600' rel='stylesheet' type='text/css'>
  <h1 class="page-heading">Posts</h1>

  <ul class="post-list">
    {% for post in site.posts %}
      <li>
        <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>

        <h2>
          <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
        </h2>
      </li>
    {% endfor %}
  </ul>

  <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>

</div>

I just installed Jekyll and haven't changed anything yet since I haven't been able to figure out where to edit.

Thanks!