- Generate RSS feed
- Add category/tag post list handlers - Add post newer/older links - Add user info edit page - Add support for all-of-the-above to personal theme
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
<div class="content">
|
||||
{% if is_category or is_tag %}
|
||||
<h2>{{ page_title }}</h2>
|
||||
{%- if subtitle %}
|
||||
<p>{{ subtitle }}</p>
|
||||
{%- endif %}
|
||||
{% endif %}
|
||||
{%- for post in model.posts %}
|
||||
<article class="item">
|
||||
<h1 class="item-heading">
|
||||
@@ -8,7 +14,11 @@
|
||||
</h1>
|
||||
<h4 class="text-center">
|
||||
<i class="fa fa-calendar" title="Date"></i> {{ post.published_on | date: "MMMM d, yyyy" }}
|
||||
<i class="fa fa-clock-o" title="Time"></i> {{ post.published_on | date: "h:mm tt" | downcase }}
|
||||
<i class="fa fa-clock-o" title="Time"></i> {{ post.published_on | date: "h:mm tt" | downcase }}
|
||||
<i class="fa fa-user" title="Author"></i> {{ model.authors | value: post.author_id }}
|
||||
{% if logged_on %}
|
||||
<a href="/post/{{ post.id }}/edit"><i class="fa fa-pencil-square-o"></i> Edit Post</a>
|
||||
{% endif %}
|
||||
</h4>
|
||||
{{ post.text }}
|
||||
</article>
|
||||
@@ -56,7 +66,7 @@
|
||||
{% for cat in categories -%}
|
||||
{%- assign indent = cat.parent_names | size -%}
|
||||
<li class="cat-list-item"{% if indent > 0 %} style="padding-left:{{ indent }}rem;"{% endif %}>
|
||||
<a href="/category/{{ cat.slug }}" class="cat-list-link">{{ cat.name }}</a>
|
||||
<a href="/category/{{ cat.slug }}/" class="cat-list-link">{{ cat.name }}</a>
|
||||
<span class="cat-list-count">{{ cat.post_count }}</span>
|
||||
</li>
|
||||
{%- endfor %}
|
||||
|
||||
@@ -5,9 +5,13 @@
|
||||
<h4 class="text-center">
|
||||
{% if post.published_on -%}
|
||||
<i class="fa fa-calendar" title="Date"></i> {{ post.published_on | date: "MMMM d, yyyy" }}
|
||||
<i class="fa fa-clock-o" title="Time"></i> {{ post.published_on | date: "h:mm tt" | downcase }}
|
||||
<i class="fa fa-clock-o" title="Time"></i> {{ post.published_on | date: "h:mm tt" | downcase }}
|
||||
{%- else -%}
|
||||
**DRAFT**
|
||||
**DRAFT**
|
||||
{% endif %}
|
||||
<i class="fa fa-user" title="Author"></i> {{ model.authors | value: post.author_id }}
|
||||
{% if logged_on %}
|
||||
<a href="/post/{{ post.id }}/edit"><i class="fa fa-pencil-square-o"></i> Edit Post</a>
|
||||
{% endif %}
|
||||
</h4>
|
||||
<div>{{ post.text }}</div>
|
||||
@@ -19,7 +23,7 @@
|
||||
{% assign cat = categories | where: "id", cat_id | first %}
|
||||
<span class="no-wrap">
|
||||
<i class="fa fa-folder-open-o" title="Category"></i>
|
||||
<a href="/category/{{ cat.slug }}" title="Categorized under “{{ cat.name | escape }}”">
|
||||
<a href="/category/{{ cat.slug }}/" title="Categorized under “{{ cat.name | escape }}”">
|
||||
{{ cat.name }}
|
||||
</a>
|
||||
</span>
|
||||
@@ -32,7 +36,7 @@
|
||||
Tagged
|
||||
{% for tag in post.tags %}
|
||||
<span class="no-wrap">
|
||||
<a href="/tag/{{ tag | replace: " ", "-" }}" title="Posts tagged “{{ tag | escape }}”">
|
||||
<a href="/tag/{{ tag | replace: " ", "+" }}/" title="Posts tagged “{{ tag | escape }}”">
|
||||
<i class="fa fa-tag"></i> {{ tag }}
|
||||
</a>
|
||||
</span>
|
||||
@@ -46,7 +50,7 @@
|
||||
{% if model.newer_link -%}
|
||||
<li class="previous item">
|
||||
<h4 class="item-heading"><a href="/{{ model.newer_link.value }}">«</a> Previous Post</h4>
|
||||
<a href="/{{ model.newer_link.value }}">“{{ model.newer_link.value }}”</a>
|
||||
<a href="/{{ model.newer_link.value }}">{{ model.newer_name.value }}</a>
|
||||
</li>
|
||||
{%- else -%}
|
||||
<li></li>
|
||||
@@ -54,7 +58,7 @@
|
||||
{% if model.older_link -%}
|
||||
<li class="next item">
|
||||
<h4 class="item-heading">Next Post <a href="/{{ model.older_link.value }}">»</a></h4>
|
||||
<a href="/{{ model.older_link.value }}">“{{ model.older_link.value }}”</a>
|
||||
<a href="/{{ model.older_link.value }}">{{ model.older_name.value }}</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user