-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+(fix) Post List number bullet point was not incrementing each post
- Loading branch information
Showing
4 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
<ol reversed class="postlist" style="counter-reset: start-from {{ (postslistCounter or postslist.length) + 1 }}"> | ||
{% for post in postslist | reverse %} | ||
<li class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}"> | ||
<a href="{{ post.url | url }}" class="postlist-link">{% if post.data.title %}{{ post.data.title }}{% else %}<code>{{ post.url }}</code>{% endif %}</a> | ||
<time class="postlist-date" datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate }}</time> | ||
{% for tag in post.data.tags | filterTagList %} | ||
{% set tagUrl %}/tags/{{ tag | slug }}/{% endset %} | ||
<a href="{{ tagUrl | url }}" class="post-tag">{{ tag }}</a> | ||
{% endfor %} | ||
</li> | ||
{% endfor %} | ||
<ol reversed="reversed" class="postlist" style="counter-reset: start-from {{ (postslistCounter or postslist.length) + 1 }}"> | ||
{% for post in postslist | reverse %} | ||
<li class="postlist-item{% if post.url == url %} postlist-item-active{% endif %}"> | ||
<a href="{{ post.url | url }}" class="postlist-link"> | ||
{% if post.data.title %}{{ post.data.title }} | ||
{% else %} | ||
<code>{{ post.url }}</code> | ||
{% endif %} | ||
</a> | ||
<time class="postlist-date" datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate }}</time> | ||
{% for tag in post.data.tags | filterTagList %} | ||
{%- if collections.tagList.indexOf(tag) != -1 -%} | ||
{% set tagUrl %}/tags/{{ tag }}/{% endset %} | ||
<a href="{{ tagUrl | url }}" class="post-tag">{{ tag }}</a> | ||
{%- endif -%} | ||
{% endfor %} | ||
</li> | ||
{% endfor %} | ||
</ol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters