fix More link
This commit is contained in:
parent
a9ab7eb6ce
commit
fed5c2a424
4 changed files with 6 additions and 8 deletions
|
@ -1,8 +1,8 @@
|
|||
{%- from "components/tagList.njk" import tagList with context -%}
|
||||
|
||||
{% macro collectionList(collection, limit=0) %}
|
||||
{% macro collectionList(tagName, limit=0) %}
|
||||
<ul class="collection">
|
||||
{%- for item in collection | reverse -%}
|
||||
{%- for item in collections[tagName] | reverse -%}
|
||||
{%- if (limit === 0 or loop.index <= limit) -%}
|
||||
<li>
|
||||
<a href="{{item.url}}">{{item.data.title}}</a>
|
||||
|
@ -15,7 +15,7 @@
|
|||
{%- endif -%}
|
||||
{%- if (limit !== 0 and loop.index == limit + 1) -%}
|
||||
<li>
|
||||
<a href="/{{name}}/">More {{name}}…</a>
|
||||
<a href="/{{tagName}}/">More {{tagName}}…</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue