Commit e6839d0b authored by tron's avatar tron

news /project fix

parent c39eafec
<!-- Filter active posts. Further filter tags when used. -->
{% if include.tags %}
{{include.tags}}
{% assign taged = include.tags | remove: " " | split: "," %}
{% assign itemlist = '' | split: ',' %}
{% for d in taged %}
......
......@@ -4,8 +4,8 @@
{% assign itemlist = '' | split: ',' %}
{% for d in taged %}
{% assign tag = d | remove: '"'| remove: ',,'| remove: "["| remove: "]"%}
{% assign temp = site.projects | where: active,true | where: "tag", tag %}
{% assign itemlist = itemlist | concat: temp | sort: 'date' | reverse %}
{% assign temp = site.projects | where: "tags", tag %}
{% assign itemlist = itemlist | concat: temp %}
{% endfor %}
{% else %}
{% assign itemlist = site.projects | where: active,true | sort: 'date' | reverse %}
......@@ -18,4 +18,4 @@
## Projects
{% endif %}
{% include list-blocks items=itemlist maxItems=include.maxItems noToggle=include.noToggle hardMax=include.hardMax logo=include.logo%}
{% endif %}
\ No newline at end of file
{% endif %}
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