Commit e6839d0b authored by tron's avatar tron
Browse files

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 %}
......
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