- Add web log to HttpContext on first retrieval per req - Add several DotLiquid filters - Use int for page numbers - Update all themes to use rel/abs link and other filters
47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
{%- assign post = model.posts | first -%}
|
|
<article class="auto">
|
|
<h1 class="entry-title">
|
|
{{ post.title }}<br>
|
|
<span class="entry-meta">
|
|
Posted by {{ model.authors | value: post.author_id }} on {{ post.published_on | date: "dddd, MMMM d, yyyy" }}
|
|
at {{ post.published_on | date: "h:mm tt" | downcase }}
|
|
{%- assign cat_count = post.category_ids | size -%}
|
|
{%- if cat_count > 0 %}
|
|
<br>
|
|
<small class="category-list">
|
|
Categorized under
|
|
{%- for cat_id in post.category_ids %}
|
|
{%- assign cat = categories | where: "id", cat_id | first -%}
|
|
<span>
|
|
<a href="{{ cat | category_link }}" title="Categorized under {{ cat.name | strip_html | escape }}"
|
|
rel="tag">
|
|
{{ cat.name }}
|
|
</a>
|
|
</span>
|
|
{%- endfor %}
|
|
</small>
|
|
{%- endif %}
|
|
</span>
|
|
</h1>
|
|
<div class="entry-content">{{ post.text }}</div>
|
|
<div class="entry-footer">
|
|
{%- assign tag_count = post.tags | size -%}
|
|
{%- if tag_count > 0 %}
|
|
<span class="category-list">
|
|
Tagged
|
|
{%- for tag in post.tags %}
|
|
<span>
|
|
<a href="{{ tag | tag_link }}" title="Tagged “{{ tag | escape }}”" rel="tag">{{ tag }}</a>
|
|
</span>
|
|
{%- endfor %}
|
|
</span> •
|
|
{%- endif %}
|
|
Bookmark the
|
|
<a href="{{ post | absolute_link }}" rel="bookmark"
|
|
title="Permanent link to “{{ post.title | strip_html | escape }}”">
|
|
permalink
|
|
</a>
|
|
{%- if logged_on %} • <a href="{{ post | edit_post_link }}">Edit Post</a>{% endif %}
|
|
</div>
|
|
</article>
|