Skip to content
Snippets Groups Projects
post_link.html 703 B
Newer Older
  • Learn to ignore specific revisions
  • Tom Wiesing's avatar
    Tom Wiesing committed
    {% comment %}
        Generates a link to a single post. 
        Expects the page representing the post as a 'post' variable. 
    {% endcomment %}
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
    
    <div class="post-link">
        <h3 class="post-title">
          <a href="{{ post.url }}">
            {{ post.title }} {{ post.subtitle }}
          </a>
        </h3>
        <p class="post-meta" >
            {% assign firsttag = post.tags | first %}
    
    Tom Wiesing's avatar
    Tom Wiesing committed
            {% assign type = site.tagpages | where:"tag", firsttag | first %}
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
            <span class="post-type">{{ type.title }} by {{post.author}}</span> -
            {% if post.location %}<span class="post-location">{{post.location}}</span> - {% endif %}
            <span class="post-date">{{ post.date | date_to_string }}</span>
        </p>
      </div>