Skip to content

Commit a87fe40

Browse files
committed
Merge branch 'main' of github.com:ELIXIR-Belgium/elixir-toolkit-theme into main
2 parents 37f108a + 1336fa0 commit a87fe40

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

_includes/resource-table-all.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h2>Relevant tools and resources</h2>
103103
{%- assign hide_ids = hide_ids | append: " " | append: tool_id %}
104104
<tr {% unless include.tag==nil %} class="collapse multi-collapse" id="{{tool_id}}" {% endunless %}>
105105
{% if tool.url %}
106-
<td><a href="{{tool.url}}">{{tool.name}}</a><a href="{{country_page.url}}" data-bs-toggle="tooltip" title="{{country_page.title}}"><span class="flag-icon ms-2 flag-icon-{{country_page.country_code | downcase }}"></span></a></td>
106+
<td><a href="{{tool.url}}">{{tool.name}}</a><a href="{{country_page.url | relative_url }}" data-bs-toggle="tooltip" title="{{country_page.title}}"><span class="flag-icon ms-2 flag-icon-{{country_page.country_code | downcase }}"></span></a></td>
107107
{%- else %}
108108
<td>{{tool.name}}<a href="{{country_page.url}}"><span class="flag-icon ms-2 flag-icon-{{country_page.country_code | downcase }}"></span></a></td>
109109
{%- endif %}

_includes/section-navigation-tiles.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
{%- for current_page in site.pages | sorted %}
5151
{%- assign affiliations_classes = "" %}
5252
{%- assign related_pages_classes = "" %}
53+
{%- assign except = include.except | split: ", " %}
5354
{%- if current_page.title and current_page.search_exclude != true and current_page.type == include.type %}
55+
{%- unless except contains current_page.name %}
5456
{%- if current_page.affiliations %}
5557
{%- capture affiliations_classes -%}
5658
{%- assign affiliations_output = "" %}
@@ -164,6 +166,7 @@ <h3 class="card-title m-0">{{current_page.title}}</h3>
164166
{%- endif %}
165167
</div>
166168
</div>
169+
{% endunless %}
167170
{%- endif %}
168171
{%- endfor %}
169172
</div>

pages/example_pages/overview_tiles.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ Nam non sollicitudin sapien. Vestibulum ante ipsum primis in faucibus orci luctu
99
## Section tiles with information
1010
```
1111
{% raw %}
12-
{% include section-navigation-tiles.html type="example_pages" affiliations=true search=true %}
12+
{% include section-navigation-tiles.html type="example_pages" affiliations=true search=true except="index.md" %}
1313
{% endraw %}
1414
```
1515

16+
### Parameters
1617

17-
{% include section-navigation-tiles.html type="example_pages" affiliations=true search=true %}
18+
* `affiliations`: Turn on filtering by affiliation
19+
* `search`: enable search in the tiles
20+
* `except`: `, ` separated list of page names which should be excluded, including the file extension
21+
22+
{% include section-navigation-tiles.html type="example_pages" affiliations=true search=true except="index.md" %}
1823

1924

2025
## Section tiles simple

0 commit comments

Comments
 (0)