{% if site.projects %} <section class=“projects”>

<h2>Projects I've worked on...</h2>
<p>
  Here are a few projects I've put together recently. Want to see more? Check
  out my <a href="#">Projects</a> page.
</p>
{% for project in site.projects %} {% if project.image contains '://' %} {%
assign image = project.image %} {% else %} {% assign image = project.image |
relative_url %} {% endif %}
<div class="project-item">
  <div class="project-image">
    <a href="{{ project.url }}"
      ><img src="{{ image }}" alt="{{ project.title }}"
    /></a>
  </div>
  <div class="project-details">
    <h2><a href="{{ project.url }}">{{ project.title }}</a></h2>
    <p>{{ project.description }}</p>
    {% for tag in project.tags %} {% if forloop.first %}
    <ul class="tags">
      {% endif %}
      <li><a href="#" class="tag">{{ tag }}</a></li>
      {% if forloop.last %}
    </ul>
    {% endif %} {% endfor %}
  </div>
</div>
{% endfor %}

</section> {% endif %}