c0deLab / tech.soa.cmu.edu

http://tech.soa.cmu.edu
1 stars 7 forks source link

Tags page #27

Closed naher94 closed 7 years ago

naher94 commented 7 years ago

show both tut and ref tags and results

naher94 commented 7 years ago

https://shopify.github.io/liquid/filters/concat/

naher94 commented 7 years ago

Jekyll 3.5 needed for concat to work

naher94 commented 7 years ago

Github Pages used Jekyll 3.4.5 :(

eddymankim commented 7 years ago

Using array push as workaround.

{% assign tags_tut =  site.tutorials | map: 'tags' | join: ','  | split: ',' | uniq %}
{% assign tags_ref =  site.references | map: 'tags' | join: ','  | split: ',' | uniq %}

{% assign tags = site.emptyArray %}

{% for tag in tags_tut %}
  {% assign tags = tags | push: tag %}
{% endfor %}
{% for tag in tags_ref %}
  {% assign tags = tags | push: tag %}
{% endfor %}

{% assign tags = tags | uniq %}