Sha256: 06ab25285a61646cee37f883dd4a50a64a85e5d129afef732078381b413944e3

Contents?: true

Size: 1.73 KB

Versions: 20

Compression:

Stored size: 1.73 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 %}
      {% include post-author-pic.html author=include.post.author %}
      <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

20 entries across 20 versions & 1 rubygems

Version Path
jekyll-theme-open-project-2.0.15 _includes/post-card.html
jekyll-theme-open-project-2.0.14 _includes/post-card.html
jekyll-theme-open-project-2.0.13 _includes/post-card.html
jekyll-theme-open-project-2.0.12 _includes/post-card.html
jekyll-theme-open-project-2.0.11 _includes/post-card.html
jekyll-theme-open-project-2.0.10 _includes/post-card.html
jekyll-theme-open-project-2.0.9 _includes/post-card.html
jekyll-theme-open-project-2.0.7 _includes/post-card.html
jekyll-theme-open-project-2.0.6 _includes/post-card.html
jekyll-theme-open-project-2.0.4 _includes/post-card.html
jekyll-theme-open-project-2.0.3 _includes/post-card.html
jekyll-theme-open-project-2.0.2 _includes/post-card.html
jekyll-theme-open-project-2.0.1 _includes/post-card.html
jekyll-theme-open-project-2.0 _includes/post-card.html
jekyll-theme-open-project-1.3.4 _includes/post-card.html
jekyll-theme-open-project-1.3.3 _includes/post-card.html
jekyll-theme-open-project-1.3.2 _includes/post-card.html
jekyll-theme-open-project-1.3.1 _includes/post-card.html
jekyll-theme-open-project-1.3 _includes/post-card.html
jekyll-theme-open-project-1.2.5 _includes/post-card.html