Sha256: bae7db92c5591b93278c9b419ca2747785f51871797c8423cebeb9fae6d5d90e

Contents?: true

Size: 1.8 KB

Versions: 10

Compression:

Stored size: 1.8 KB

Contents

<a class="item {% if include.post.parent_project %}has-parent-project{% endif %}"
  href="
    {% if include.post.parent_project %}
      {{ include.post.parent_project.home_url }}blog/{{ include.post.date | date: "%m-%d-%Y" }}/{{ include.post.slug }}/
    {% else %}
      {{ include.post.url }}
    {% endif %}
  " role="article">

  {% if include.post.parent_project == nil and site.is_hub == true %}
    <div class="hub-symbol" role="presentation">
      {% include assets/symbol.svg %}
    </div>
  {% endif %}

  <header>
    {% if include.post.parent_project %}
      {% assign project_symbol_path = include.post.parent_project.name | append: "/assets/symbol.svg" %}
      {% assign relative_symbol_path = "/projects/" | append: project_symbol_path %}
      <div class="parent-project">
        <div class="project-logo" role="presentation">
          <img src="{{ relative_symbol_path }}">
        </div>
        <h4 class="project-title">{{ include.post.parent_project.title }}</h4>
        <div class="external-link-icon" role="presentation">
          <img src="{{ "assets/img/external-link.svg" | relative_url }}">
        </div>
      </div>
    {% endif %}
    <h3 class="title">{{ include.post.title }}</h3>
  </header>

  <p class="body">
    {{ include.post.excerpt | remove: '<p>' | remove: '</p>' }}
  </p>

  <footer class="meta">
    {% if include.post.author.name %}
      {% if include.post.author.email %}
        <span class="author-avatar">
          <img src="https://gravatar.com/avatar/{{ include.post.author.email }}?s=32">
        </span>
      {% endif %}
      <span class="author-name">
        {{ include.post.author.name }}
      </span>
    {% endif %}
    <span class="date">
      {% if include.post.author.name %}on {% endif %}
      {{ include.post.date | date_to_string }}
    </span>
  </footer>

</a>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jekyll-theme-open-project-1.0.6 _includes/post-card.html
jekyll-theme-open-project-1.0.5 _includes/post-card.html
jekyll-theme-open-project-1.0.4 _includes/post-card.html
jekyll-theme-open-project-1.0.3 _includes/post-card.html
jekyll-theme-open-project-1.0.2 _includes/post-card.html
jekyll-theme-open-project-1.0.0.rc5 _includes/post-card.html
jekyll-theme-open-project-1.0.0.rc4 _includes/post-card.html
jekyll-theme-open-project-1.0.0.rc3 _includes/post-card.html
jekyll-theme-open-project-1.0.0.rc2 _includes/post-card.html
jekyll-theme-open-project-1.0.0.rc1 _includes/post-card.html