Commit e6839d0b authored by tron's avatar tron
Browse files

news /project fix

parent c39eafec
<!-- Filter active posts. Further filter tags when used. --> <!-- Filter active posts. Further filter tags when used. -->
{% if include.tags %} {% if include.tags %}
{{include.tags}}
{% assign taged = include.tags | remove: " " | split: "," %} {% assign taged = include.tags | remove: " " | split: "," %}
{% assign itemlist = '' | split: ',' %} {% assign itemlist = '' | split: ',' %}
{% for d in taged %} {% for d in taged %}
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
{% assign itemlist = '' | split: ',' %} {% assign itemlist = '' | split: ',' %}
{% for d in taged %} {% for d in taged %}
{% assign tag = d | remove: '"'| remove: ',,'| remove: "["| remove: "]"%} {% assign tag = d | remove: '"'| remove: ',,'| remove: "["| remove: "]"%}
{% assign temp = site.projects | where: active,true | where: "tag", tag %} {% assign temp = site.projects | where: "tags", tag %}
{% assign itemlist = itemlist | concat: temp | sort: 'date' | reverse %} {% assign itemlist = itemlist | concat: temp %}
{% endfor %} {% endfor %}
{% else %} {% else %}
{% assign itemlist = site.projects | where: active,true | sort: 'date' | reverse %} {% assign itemlist = site.projects | where: active,true | sort: 'date' | reverse %}
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
## Projects ## Projects
{% endif %} {% endif %}
{% include list-blocks items=itemlist maxItems=include.maxItems noToggle=include.noToggle hardMax=include.hardMax logo=include.logo%} {% include list-blocks items=itemlist maxItems=include.maxItems noToggle=include.noToggle hardMax=include.hardMax logo=include.logo%}
{% endif %} {% endif %}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment