1234567891011121314151617181920212223242526272829303132333435 |
- {% spaceless %}<article class="list">
- <a id=nounderline href="{{ page.url }}">
- <h1>{{ page.title|replace({'-':'‑'}) }}</h1>{# the replacement is a non-breaking hyphen #}
- {% if page.meta.description is not empty %}
- <p class="description">{{ page.meta.description }}</p>
- {% endif %}
- </a>
- <aside class="clearfix">
- {% if page.meta.date is not empty %}
- <span class="date">{{ page.meta.date_formatted }}
- {% if page.meta.timeline is not empty %}
- <span class="timeline">
- {% for date in page.meta.timeline|split(',') %}
- - {{ date|date("M d Y") }}
- {% endfor %}
- </span>
- {% endif %}
- </span>
- {% endif %}
- {% if page.meta.author is not empty %}
- <span class="author">by <a href="/authors?q={{ page.meta.author }}">{{ page.meta.author }}</a></span>
- {% endif %}
- {% for tag in page.meta.tags|split(',') %}
- <a class="tag" href="/tags?q={{ tag }}">#{{ tag }}</a>
- {% endfor %}
- </aside>
- {% if config.tagblog.excerpt %}
- {# Alternative method that cuts at word boundaries, counting 50 words #}
- {#<p class="excerpt">{% if page.meta.excerpt is not empty %}{{ page.meta.excerpt }}{% else %}{% set excerpt = page.id|content|striptags|split(' ') %}{% for i in 0..50 %}{{ excerpt[i]|raw }} {% endfor %}{% endif %}...</p>#}
- {# Simple method, slicing off the first 300 characters #}
- {% if page.meta.excerpt is not empty %}<div class="excerpt"><p>{{ page.meta.excerpt }}</p></div>{% elseif config.tagblog.excerpt_length > 0 %}<div class="excerpt"><p>{{ page.id|content|striptags|slice(0,config.tagblog.excerpt_length) }}{{ config.tagblog.excerpt_terminator }}</p></div>{% endif %}
- {% endif %}
- </article>
- {% endspaceless %}
|