diff --git a/_includes/resource-table-communities.html b/_includes/resource-table-category.html similarity index 98% rename from _includes/resource-table-communities.html rename to _includes/resource-table-category.html index ed606bd..4baab5a 100644 --- a/_includes/resource-table-communities.html +++ b/_includes/resource-table-category.html @@ -22,7 +22,7 @@ {%- for tool in tools %} {% assign found = false %} {% for desc in tool.Type %} - {% if desc == "Online communities" %} + {% if desc == include.category %} {% assign found = true %} {% endif %} {% endfor %} diff --git a/_includes/resource-table-dbs.html b/_includes/resource-table-dbs.html deleted file mode 100644 index 9a2b7f8..0000000 --- a/_includes/resource-table-dbs.html +++ /dev/null @@ -1,56 +0,0 @@ -{%- if include.tag %} -{%- assign tools = site.data.tool_and_resource_list | add_related_pages | where:"related_pages", include.tag | sort_natural: "name" %} -{%- else %} -{%- assign tools = site.data.tool_and_resource_list | add_related_pages | sort_natural: "name" %} -{%- endif %} -{%- assign country_pages = site.pages | where_exp: "item", "item.search_exclude != true" | where_exp:"item","item.national_resources != nil" %} -{%- unless tools.size == 0 or tools == nil %} -Skip tool table -
| How-to Guide or resource {%- if include.tag -%} - - - {%- endif %} - | -Description | -|
|---|---|---|
| {{tool.Title}} | - {%- else %} -{{tool.Title}} | - {%- endif %} -{{tool.Description}}
- {%- if tool.instance_of or tool.how_to_access or instances_tool != 0 and total_county_tools != 0 and include.tag != nil %}
- {%- assign linked_tool = site.data.tool_and_resource_list | where:"id", tool.instance_of | first %}
-
- {%- if linked_tool %}
- {{linked_tool.name}}
- {%- endif %}
- {%- if tool.how_to_access %}
-
- {%- endif %}
-
- {%- endif %}
- |
-
| How-to Guide or resource {%- if include.tag -%} - - - {%- endif %} - | -Description | -|
|---|---|---|
| {{tool.Title}} | - {%- else %} -{{tool.Title}} | - {%- endif %} -{{tool.Description}}
- {%- if tool.instance_of or tool.how_to_access or instances_tool != 0 and total_county_tools != 0 and include.tag != nil %}
- {%- assign linked_tool = site.data.tool_and_resource_list | where:"id", tool.instance_of | first %}
-
- {%- if linked_tool %}
- {{linked_tool.name}}
- {%- endif %}
- {%- if tool.how_to_access %}
-
- {%- endif %}
-
- {%- endif %}
- |
-
| How-to Guide or resource {%- if include.tag -%} - - - {%- endif %} - | -Description | -|
|---|---|---|
| {{tool.Title}} | - {%- else %} -{{tool.Title}} | - {%- endif %} -{{tool.Description}}
- {%- if tool.instance_of or tool.how_to_access or instances_tool != 0 and total_county_tools != 0 and include.tag != nil %}
- {%- assign linked_tool = site.data.tool_and_resource_list | where:"id", tool.instance_of | first %}
-
- {%- if linked_tool %}
- {{linked_tool.name}}
- {%- endif %}
- {%- if tool.how_to_access %}
-
- {%- endif %}
-
- {%- endif %}
- |
-
| How-to Guide or resource {%- if include.tag -%} - - - {%- endif %} - | -Description | -|
|---|---|---|
| {{tool.Title}} | - {%- else %} -{{tool.Title}} | - {%- endif %} -{{tool.Description}}
- {%- if tool.instance_of or tool.how_to_access or instances_tool != 0 and total_county_tools != 0 and include.tag != nil %}
- {%- assign linked_tool = site.data.tool_and_resource_list | where:"id", tool.instance_of | first %}
-
- {%- if linked_tool %}
- {{linked_tool.name}}
- {%- endif %}
- {%- if tool.how_to_access %}
-
- {%- endif %}
-
- {%- endif %}
- |
-
| How-to Guide or resource {%- if include.tag -%} - - - {%- endif %} - | -Description | -|
|---|---|---|
| {{tool.Title}} | - {%- else %} -{{tool.Title}} | - {%- endif %} -{{tool.Description}}
- {%- if tool.instance_of or tool.how_to_access or instances_tool != 0 and total_county_tools != 0 and include.tag != nil %}
- {%- assign linked_tool = site.data.tool_and_resource_list | where:"id", tool.instance_of | first %}
-
- {%- if linked_tool %}
- {{linked_tool.name}}
- {%- endif %}
- {%- if tool.how_to_access %}
-
- {%- endif %}
-
- {%- endif %}
- |
-