From 1ef68e5cc5aca4a338242bf1847f698b5068d559 Mon Sep 17 00:00:00 2001 From: Tom Litfin Date: Fri, 4 Jul 2025 18:46:10 +1000 Subject: [PATCH 1/2] Add shared resource table category template --- _includes/resource-table-category.html | 56 +++++++++++++++++++++++++ pages/resources/external_communities.md | 2 +- pages/resources/external_databases.md | 2 +- pages/resources/external_guides.md | 2 +- pages/resources/external_servers.md | 2 +- pages/resources/external_videos.md | 2 +- pages/resources/external_viz.md | 2 +- 7 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 _includes/resource-table-category.html diff --git a/_includes/resource-table-category.html b/_includes/resource-table-category.html new file mode 100644 index 0000000..4baab5a --- /dev/null +++ b/_includes/resource-table-category.html @@ -0,0 +1,56 @@ +{%- 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 +
+ + + + + + + + + {%- for tool in tools %} + {% assign found = false %} + {% for desc in tool.Type %} + {% if desc == include.category %} + {% assign found = true %} + {% endif %} + {% endfor %} + {% if found %} + + {% if tool.URL %} + + {%- else %} + + {%- endif %} + + + {%- endif %} + {%- endfor %} + +
How-to Guide or resource {%- if include.tag -%} + + + {%- endif %} + Description
{{tool.Title}}{{tool.Title}}{{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 %} +
+
+{%- endunless %} +
\ No newline at end of file diff --git a/pages/resources/external_communities.md b/pages/resources/external_communities.md index f4275a4..0cd2004 100644 --- a/pages/resources/external_communities.md +++ b/pages/resources/external_communities.md @@ -5,4 +5,4 @@ datatable: true #type: resources --- -{% include resource-table-communities.html %} +{% include resource-table-category.html category="Online communities" %} diff --git a/pages/resources/external_databases.md b/pages/resources/external_databases.md index c5a377a..eba65f1 100644 --- a/pages/resources/external_databases.md +++ b/pages/resources/external_databases.md @@ -5,4 +5,4 @@ datatable: true #type: resources --- -{% include resource-table-dbs.html %} +{% include resource-table-category.html category="Reference databases" %} diff --git a/pages/resources/external_guides.md b/pages/resources/external_guides.md index 2512656..ef8ea00 100644 --- a/pages/resources/external_guides.md +++ b/pages/resources/external_guides.md @@ -5,4 +5,4 @@ datatable: true #type: resources --- -{% include resource-table-guides.html %} +{% include resource-table-category.html category="Computational structural bio guides and tutorials" %} diff --git a/pages/resources/external_servers.md b/pages/resources/external_servers.md index d236eff..52d54fe 100644 --- a/pages/resources/external_servers.md +++ b/pages/resources/external_servers.md @@ -5,4 +5,4 @@ datatable: true #type: resources --- -{% include resource-table-servers.html %} +{% include resource-table-category.html category="Webservers and computing resources" %} diff --git a/pages/resources/external_videos.md b/pages/resources/external_videos.md index 99c8a26..1a053a7 100644 --- a/pages/resources/external_videos.md +++ b/pages/resources/external_videos.md @@ -5,4 +5,4 @@ datatable: true #type: resources --- -{% include resource-table-videos.html %} +{% include resource-table-category.html category="YouTube talks and tutorials" %} diff --git a/pages/resources/external_viz.md b/pages/resources/external_viz.md index 0173a67..d563628 100644 --- a/pages/resources/external_viz.md +++ b/pages/resources/external_viz.md @@ -5,4 +5,4 @@ datatable: true #type: resources --- -{% include resource-table-viz.html %} +{% include resource-table-category.html category="Protein viz guides and tutorials" %} From cab2d7294d7934b7cfa35cf6d3399c90dfadcb6d Mon Sep 17 00:00:00 2001 From: Tom Litfin Date: Fri, 4 Jul 2025 18:46:52 +1000 Subject: [PATCH 2/2] Delete unused resource table templates --- _includes/resource-table-communities.html | 56 ----------------------- _includes/resource-table-dbs.html | 56 ----------------------- _includes/resource-table-guides.html | 56 ----------------------- _includes/resource-table-servers.html | 56 ----------------------- _includes/resource-table-videos.html | 56 ----------------------- _includes/resource-table-viz.html | 56 ----------------------- 6 files changed, 336 deletions(-) delete mode 100644 _includes/resource-table-communities.html delete mode 100644 _includes/resource-table-dbs.html delete mode 100644 _includes/resource-table-guides.html delete mode 100644 _includes/resource-table-servers.html delete mode 100644 _includes/resource-table-videos.html delete mode 100644 _includes/resource-table-viz.html diff --git a/_includes/resource-table-communities.html b/_includes/resource-table-communities.html deleted file mode 100644 index ed606bd..0000000 --- a/_includes/resource-table-communities.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 -
- - - - - - - - - {%- for tool in tools %} - {% assign found = false %} - {% for desc in tool.Type %} - {% if desc == "Online communities" %} - {% assign found = true %} - {% endif %} - {% endfor %} - {% if found %} - - {% if tool.URL %} - - {%- else %} - - {%- endif %} - - - {%- endif %} - {%- endfor %} - -
How-to Guide or resource {%- if include.tag -%} - - - {%- endif %} - Description
{{tool.Title}}{{tool.Title}}{{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 %} -
-
-{%- endunless %} -
\ No newline at end of file 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 -
- - - - - - - - - {%- for tool in tools %} - {% assign found = false %} - {% for desc in tool.Type %} - {% if desc == "Reference databases" %} - {% assign found = true %} - {% endif %} - {% endfor %} - {% if found %} - - {% if tool.URL %} - - {%- else %} - - {%- endif %} - - - {%- endif %} - {%- endfor %} - -
How-to Guide or resource {%- if include.tag -%} - - - {%- endif %} - Description
{{tool.Title}}{{tool.Title}}{{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 %} -
-
-{%- endunless %} -
\ No newline at end of file diff --git a/_includes/resource-table-guides.html b/_includes/resource-table-guides.html deleted file mode 100644 index 0a5ded8..0000000 --- a/_includes/resource-table-guides.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 -
- - - - - - - - - {%- for tool in tools %} - {% assign found = false %} - {% for desc in tool.Type %} - {% if desc == "Computational structural bio guides and tutorials" %} - {% assign found = true %} - {% endif %} - {% endfor %} - {% if found %} - - {% if tool.URL %} - - {%- else %} - - {%- endif %} - - - {%- endif %} - {%- endfor %} - -
How-to Guide or resource {%- if include.tag -%} - - - {%- endif %} - Description
{{tool.Title}}{{tool.Title}}{{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 %} -
-
-{%- endunless %} -
\ No newline at end of file diff --git a/_includes/resource-table-servers.html b/_includes/resource-table-servers.html deleted file mode 100644 index 762ee2a..0000000 --- a/_includes/resource-table-servers.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 -
- - - - - - - - - {%- for tool in tools %} - {% assign found = false %} - {% for desc in tool.Type %} - {% if desc == "Webservers and computing resources" %} - {% assign found = true %} - {% endif %} - {% endfor %} - {% if found %} - - {% if tool.URL %} - - {%- else %} - - {%- endif %} - - - {%- endif %} - {%- endfor %} - -
How-to Guide or resource {%- if include.tag -%} - - - {%- endif %} - Description
{{tool.Title}}{{tool.Title}}{{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 %} -
-
-{%- endunless %} -
\ No newline at end of file diff --git a/_includes/resource-table-videos.html b/_includes/resource-table-videos.html deleted file mode 100644 index 6bbee88..0000000 --- a/_includes/resource-table-videos.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 -
- - - - - - - - - {%- for tool in tools %} - {% assign found = false %} - {% for desc in tool.Type %} - {% if desc == "YouTube talks and tutorials" %} - {% assign found = true %} - {% endif %} - {% endfor %} - {% if found %} - - {% if tool.URL %} - - {%- else %} - - {%- endif %} - - - {%- endif %} - {%- endfor %} - -
How-to Guide or resource {%- if include.tag -%} - - - {%- endif %} - Description
{{tool.Title}}{{tool.Title}}{{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 %} -
-
-{%- endunless %} -
\ No newline at end of file diff --git a/_includes/resource-table-viz.html b/_includes/resource-table-viz.html deleted file mode 100644 index b4e7a78..0000000 --- a/_includes/resource-table-viz.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 -
- - - - - - - - - {%- for tool in tools %} - {% assign found = false %} - {% for desc in tool.Type %} - {% if desc == "Protein viz guides and tutorials" %} - {% assign found = true %} - {% endif %} - {% endfor %} - {% if found %} - - {% if tool.URL %} - - {%- else %} - - {%- endif %} - - - {%- endif %} - {%- endfor %} - -
How-to Guide or resource {%- if include.tag -%} - - - {%- endif %} - Description
{{tool.Title}}{{tool.Title}}{{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 %} -
-
-{%- endunless %} -
\ No newline at end of file