Sha256: 6672bd56a7415db17b23f1143ddd79eb0ba3fe58bc1cd0efecf7e8840f337c1e

Contents?: true

Size: 1.85 KB

Versions: 11

Compression:

Stored size: 1.85 KB

Contents

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

  {% if include.post.parent_project == nil and site.is_hub == true %}
    <div class="hub-symbol">
      {% 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">
          <img src="{{ relative_symbol_path }}">
        </div>
        <h4 class="project-title">{{ include.post.parent_project.title }}</h4>
        <div class="external-link-icon">
          <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>' | remove: '<div class="presentation">' | remove: '</div>' }}
  </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

11 entries across 11 versions & 1 rubygems

Version Path
jekyll-theme-open-project-1.2.4 _includes/post-card.html
jekyll-theme-open-project-1.2.3 _includes/post-card.html
jekyll-theme-open-project-1.2.2 _includes/post-card.html
jekyll-theme-open-project-1.2.1 _includes/post-card.html
jekyll-theme-open-project-1.2 _includes/post-card.html
jekyll-theme-open-project-1.1.27 _includes/post-card.html
jekyll-theme-open-project-1.1.26 _includes/post-card.html
jekyll-theme-open-project-1.1.25 _includes/post-card.html
jekyll-theme-open-project-1.1.24 _includes/post-card.html
jekyll-theme-open-project-1.1.23 _includes/post-card.html
jekyll-theme-open-project-1.1.22 _includes/post-card.html