use markdownFormat filter and new tag approach on home, remove todo from blog.
This commit is contained in:
parent
075f8b9d52
commit
13463917ed
2 changed files with 9 additions and 5 deletions
|
|
@ -34,13 +34,11 @@ layout: base
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div slot="content" webc:nokeep>{{ item.data.description | markdownFormat | safe }}</div>
|
<div slot="content" webc:nokeep>{{ item.data.description | markdownFormat | safe }}</div>
|
||||||
</custom-card>
|
</custom-card>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</custom-masonry>
|
</custom-masonry>
|
||||||
|
|
||||||
<!-- TODO: pagination is reversed. -->
|
|
||||||
|
|
||||||
<!-- set collection to paginate -->
|
<!-- set collection to paginate -->
|
||||||
{% set collectionToPaginate = collections.posts %}
|
{% set collectionToPaginate = collections.posts %}
|
||||||
<!-- set target pagination settings in meta.js -->
|
<!-- set target pagination settings in meta.js -->
|
||||||
|
|
|
||||||
|
|
@ -39,9 +39,15 @@ layout: base
|
||||||
if
|
if
|
||||||
item.data.tags.length > 1
|
item.data.tags.length > 1
|
||||||
%}
|
%}
|
||||||
<span slot="tag" class="button post-tag">{{ item.data.tags[1] }}</span>
|
<div slot="tag" webc:nkoeep>
|
||||||
|
{% for tag in item.data.tags %}
|
||||||
|
{% if tag != "posts" %}
|
||||||
|
<span class="button post-tag">{{ tag }}</span>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p slot="content">{{ item.data.description }}</p>
|
<div slot="content" webc:nokeep>{{ item.data.description | markdownFormat | safe }}</div>
|
||||||
</custom-card>
|
</custom-card>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</custom-masonry>
|
</custom-masonry>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue